all repos — fluxbox @ 4787059491bc2f1c6eb58149a8a5809aa3a201d1

custom fork of the fluxbox windowmanager

Fixed some casting
fluxgen fluxgen
commit

4787059491bc2f1c6eb58149a8a5809aa3a201d1

parent

66ea6cf7828d437a66e9795c6b02fb238ad467dd

1 files changed, 6 insertions(+), 5 deletions(-)

jump to
M src/Keys.ccsrc/Keys.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -//$Id: Keys.cc,v 1.4 2002/01/07 23:44:09 fluxgen Exp $ +//$Id: Keys.cc,v 1.5 2002/01/08 12:13:25 fluxgen Exp $ #ifdef HAVE_CONFIG_H # include "config.h"

@@ -71,6 +71,7 @@ #include <iostream>

#include <fstream> #include <vector> #include <cassert> +#include <memory> using namespace std;

@@ -266,7 +267,7 @@

last_key->action = m_actionlist[i].action; if (last_key->action == Keys::EXECUTE) last_key->execcommand = - static_cast<char *>(strcasestr(linebuffer.get(), getActionStr(Keys::EXECUTE))+ + const_cast<char *>(StringUtil::strcasestr(linebuffer.get(), getActionStr(Keys::EXECUTE))+ strlen(getActionStr(Keys::EXECUTE))); //add the keychain to list

@@ -277,8 +278,8 @@ #ifdef DEBUG

if (m_actionlist[i].action == Keys::EXECUTE) { cerr<<"line:"<<line<<endl; - cerr<<"buffer:"<<static_cast<char *>(strcasestr(linebuffer.get(), getActionStr(Keys::EXECUTE))+ - strlen(getActionStr(Keys::EXECUTE)))<<endl; + cerr<<"buffer:"<<const_cast<char *>(StringUtil::strcasestr(linebuffer.get(), + getActionStr(Keys::EXECUTE)) + strlen(getActionStr(Keys::EXECUTE)))<<endl; cerr<<"command:"<<last_key->execcommand<<endl; }

@@ -305,7 +306,7 @@ }

} #ifdef DEBUG - showTree(); + showTree(); //who keybinding tree #endif return true; }