diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-11-04 12:39:40 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-11-04 12:43:15 +0100 |
commit | 6ca21693d592267199f780156930c2de92d25e30 (patch) | |
tree | 79fc3db4bf244115847fd773bb7fa58dd50275d1 /kdirstat/kcleanup.cpp | |
parent | 76fb9f08873a6808bd4d07d327549b7441b7758d (diff) | |
download | kdirstat-6ca21693d592267199f780156930c2de92d25e30.tar.gz kdirstat-6ca21693d592267199f780156930c2de92d25e30.zip |
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kdirstat/kcleanup.cpp')
-rw-r--r-- | kdirstat/kcleanup.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kdirstat/kcleanup.cpp b/kdirstat/kcleanup.cpp index 146d7b9..a6e2694 100644 --- a/kdirstat/kcleanup.cpp +++ b/kdirstat/kcleanup.cpp @@ -36,7 +36,7 @@ KCleanup::KCleanup( TQString id, : TDEAction( title, 0, // accel parent, - id ) + id.utf8() ) , _id ( id ) , _command ( command ) @@ -312,9 +312,9 @@ KCleanup::expandVariables( const KFileInfo * item, TQString expanded = unexpanded; expanded.replace( TQRegExp( "%p" ), - "\"" + TQString::fromLocal8Bit( item->url() ) + "\"" ); + "\"" + item->url() + "\"" ); expanded.replace( TQRegExp( "%n" ), - "\"" + TQString::fromLocal8Bit( item->name() ) + "\"" ); + "\"" + item->name() + "\"" ); if ( KDE::versionMajor() >= 3 && KDE::versionMinor() >= 4 ) expanded.replace( TQRegExp( "%t" ), "trash:/" ); |