summaryrefslogtreecommitdiffstats
path: root/kdirstat/kdirtree.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/kdirtree.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/kdirtree.cpp')
-rw-r--r--kdirstat/kdirtree.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kdirstat/kdirtree.cpp b/kdirstat/kdirtree.cpp
index fd2ecb2..a4aafd2 100644
--- a/kdirstat/kdirtree.cpp
+++ b/kdirstat/kdirtree.cpp
@@ -859,7 +859,7 @@ KLocalDirReadJob::startReading()
struct stat statInfo;
TQString dirName = _dir->url();
- if ( ( _diskDir = opendir( dirName ) ) )
+ if ( ( _diskDir = opendir( dirName.local8Bit() ) ) )
{
_tree->sendProgressInfo( dirName );
_dir->setReadState( KDirReading );
@@ -873,7 +873,7 @@ KLocalDirReadJob::startReading()
{
TQString fullName = dirName + "/" + entryName;
- if ( lstat( fullName, &statInfo ) == 0 ) // lstat() OK
+ if ( lstat( fullName.local8Bit(), &statInfo ) == 0 ) // lstat() OK
{
if ( S_ISDIR( statInfo.st_mode ) ) // directory child?
{
@@ -957,7 +957,7 @@ KLocalDirReadJob::stat( const KURL & url,
{
struct stat statInfo;
- if ( lstat( url.path(), &statInfo ) == 0 ) // lstat() OK
+ if ( lstat( url.path().local8Bit(), &statInfo ) == 0 ) // lstat() OK
{
TQString name = parent ? url.filename() : url.path();