diff options
Diffstat (limited to 'konsole/konsole/main.cpp')
-rw-r--r-- | konsole/konsole/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/konsole/konsole/main.cpp b/konsole/konsole/main.cpp index 5b391a5e5..d37a43be3 100644 --- a/konsole/konsole/main.cpp +++ b/konsole/konsole/main.cpp @@ -111,7 +111,7 @@ const char *konsole_shell(TQStrList &args) if (shell == NULL || *shell == '\0') shell = "/bin/sh"; if (login_shell) { - char* t = (char*)strrchr(shell,'/'); + char* t = const_cast<char*>(strrchr(shell,'/')); if (t) // see sh(1) { t = strdup(t); @@ -451,7 +451,7 @@ extern "C" int KDE_EXPORT kdemain(int argc, char* argv[]) int c = 0, l = 0; if ( !sz.isEmpty() ) { - char *ls = (char*)strchr( sz.data(), 'x' ); + char *ls = strchr( sz.data(), 'x' ); if ( ls != NULL ) { *ls='\0'; |