diff options
Diffstat (limited to 'src/kvilib/file/kvi_fileutils.cpp')
-rw-r--r-- | src/kvilib/file/kvi_fileutils.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/kvilib/file/kvi_fileutils.cpp b/src/kvilib/file/kvi_fileutils.cpp index 8e81f861..9bea5c96 100644 --- a/src/kvilib/file/kvi_fileutils.cpp +++ b/src/kvilib/file/kvi_fileutils.cpp @@ -105,11 +105,7 @@ namespace KviFileUtils TQString createdDir; #ifdef COMPILE_ON_WINDOWS -#ifdef COMPILE_USE_QT4 - int idx = dir.indexOf(':'); -#else int idx = dir.find(':'); -#endif if(idx == 1) { createdDir = dir.left(2); @@ -213,20 +209,12 @@ namespace KviFileUtils { #ifdef COMPILE_ON_WINDOWS szPath.replace('/',"\\"); -#ifdef COMPILE_USE_QT4 - szPath.replace("\\\\","\\"); -#else while(szPath.find("\\\\") != -1)szPath.replace("\\\\","\\"); -#endif // FIXME: Use the default drive here ? if(szPath.startsWith("\\"))szPath.prepend("C:"); #else szPath.replace('\\',"/"); -#ifdef COMPILE_USE_QT4 - szPath.replace("//","/"); -#else while(KviTQString::find(szPath,"//") != -1)szPath.replace("//","/"); -#endif // deal with windows paths if((szPath.length() > 2) && (szPath.at(0) != TQChar('/'))) { @@ -235,12 +223,8 @@ namespace KviFileUtils szPath.remove(0,2); } } -#ifdef COMPILE_USE_QT4 - szPath=TQDir::cleanPath(szPath); -#else szPath=TQDir::cleanDirPath(szPath); #endif -#endif } |