diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-15 21:36:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-15 21:36:27 +0000 |
commit | d54ab5595153b3dc57560077ff3551ffd4406b30 (patch) | |
tree | 9c48320521bf9ec3cb310c4046289d5a28ec3213 /kcontrol/fonts/kxftconfig.cpp | |
parent | 4b12a38f6e566f44f5549b4a85e3ae9e715e0d08 (diff) | |
download | tdebase-d54ab5595153b3dc57560077ff3551ffd4406b30.tar.gz tdebase-d54ab5595153b3dc57560077ff3551ffd4406b30.zip |
Fix a number of issues in kdebase caused by C style casts
This includes Bug #492
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1247425 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/fonts/kxftconfig.cpp')
-rw-r--r-- | kcontrol/fonts/kxftconfig.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kcontrol/fonts/kxftconfig.cpp b/kcontrol/fonts/kxftconfig.cpp index fa4dc788e..6b7d166db 100644 --- a/kcontrol/fonts/kxftconfig.cpp +++ b/kcontrol/fonts/kxftconfig.cpp @@ -1147,7 +1147,7 @@ void KXftConfig::readContents() if(*ptr=='\"') { ptr++; - if(NULL!=(eostr=(char*)strchr(ptr, '\"')) && eostr-ptr<constMaxDataLen) + if(NULL!=(eostr=strchr(ptr, '\"')) && eostr-ptr<constMaxDataLen) { memcpy(data, ptr, eostr-ptr); data[eostr-ptr]='\0'; @@ -1183,7 +1183,7 @@ void KXftConfig::readContents() if(*ptr=='\"') { ptr++; - if(NULL!=(eostr=(char*)strchr(ptr, '\"')) && eostr-ptr<constMaxDataLen) + if(NULL!=(eostr=strchr(ptr, '\"')) && eostr-ptr<constMaxDataLen) { memcpy(data, ptr, eostr-ptr); data[eostr-ptr]='\0'; |