diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-15 22:04:59 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-15 22:04:59 +0000 |
commit | ffc0e2b642ced61bea304bb3008fa53fe22e17b6 (patch) | |
tree | 88231991d5e083049323d79d2b094d3a96aeb3ca /kioslave | |
parent | a043e39872162ebee03165fb47f26cb8b3e1b251 (diff) | |
download | tdelibs-ffc0e2b642ced61bea304bb3008fa53fe22e17b6.tar.gz tdelibs-ffc0e2b642ced61bea304bb3008fa53fe22e17b6.zip |
Fix potential kdelibs problems caused by C style char* casts
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1247432 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslave')
-rw-r--r-- | kioslave/ftp/ftp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kioslave/ftp/ftp.cc b/kioslave/ftp/ftp.cc index e310930fe..4eed185e6 100644 --- a/kioslave/ftp/ftp.cc +++ b/kioslave/ftp/ftp.cc @@ -1955,7 +1955,7 @@ bool Ftp::ftpReadDir(FtpEntry& de) // and p_date_3 contains probably a time char * semicolon; - if ( ( semicolon = (char*)strchr( p_date_3, ':' ) ) ) + if ( ( semicolon = const_cast<char*>(strchr( p_date_3, ':' )) ) ) { *semicolon = '\0'; tmptr->tm_min = atoi( semicolon + 1 ); |