summaryrefslogtreecommitdiffstats
path: root/kdirstat/kcleanup.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-11-04 12:39:40 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-11-04 12:43:15 +0100
commit6ca21693d592267199f780156930c2de92d25e30 (patch)
tree79fc3db4bf244115847fd773bb7fa58dd50275d1 /kdirstat/kcleanup.cpp
parent76fb9f08873a6808bd4d07d327549b7441b7758d (diff)
downloadkdirstat-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.cpp6
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:/" );