From 4787059491bc2f1c6eb58149a8a5809aa3a201d1 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 8 Jan 2002 12:13:25 +0000 Subject: Fixed some casting --- src/Keys.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Keys.cc b/src/Keys.cc index 8b15f69..fd39ecd 100644 --- a/src/Keys.cc +++ b/src/Keys.cc @@ -19,7 +19,7 @@ // 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 #include #include +#include using namespace std; @@ -266,7 +267,7 @@ bool Keys::load(char *filename) { last_key->action = m_actionlist[i].action; if (last_key->action == Keys::EXECUTE) last_key->execcommand = - static_cast(strcasestr(linebuffer.get(), getActionStr(Keys::EXECUTE))+ + const_cast(StringUtil::strcasestr(linebuffer.get(), getActionStr(Keys::EXECUTE))+ strlen(getActionStr(Keys::EXECUTE))); //add the keychain to list @@ -277,8 +278,8 @@ bool Keys::load(char *filename) { if (m_actionlist[i].action == Keys::EXECUTE) { cerr<<"line:"<(strcasestr(linebuffer.get(), getActionStr(Keys::EXECUTE))+ - strlen(getActionStr(Keys::EXECUTE)))<(StringUtil::strcasestr(linebuffer.get(), + getActionStr(Keys::EXECUTE)) + strlen(getActionStr(Keys::EXECUTE)))<execcommand<