summaryrefslogtreecommitdiffstats
path: root/konsole
diff options
context:
space:
mode:
Diffstat (limited to 'konsole')
-rw-r--r--konsole/konsole/keytrans.cpp2
-rw-r--r--konsole/konsole/main.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/konsole/konsole/keytrans.cpp b/konsole/konsole/keytrans.cpp
index da197a695..b3aa76e9f 100644
--- a/konsole/konsole/keytrans.cpp
+++ b/konsole/konsole/keytrans.cpp
@@ -143,7 +143,7 @@ bool KeyTrans::findEntry(int key, int bits, int* cmd, const char** txt, int* len
char *c;
char mask = '1' + BITS(0, bits&(1<<BITS_Shift)) + BITS(1, bits&(1<<BITS_Alt)) + BITS(2, bits&(1<<BITS_Control));
strcpy(buf, it.current()->txt.ascii());
- c = (char*)strchr(buf, '*');
+ c = strchr(buf, '*');
if (c) *c = mask;
*txt = buf;
}
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';