summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-15 21:06:11 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-15 21:06:11 +0000
commita52572740657a539cdc032c89ec744673071698b (patch)
tree30a60018702df9b45bdfb59bcf206b202655bf31
parent40949332b7d0a7a2b3fde3ee7daa7274d8fa0fb3 (diff)
downloadtdelibs-a5257274.tar.gz
tdelibs-a5257274.zip
Had a better idea since commit 1164087; hopefully this will work properly.
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1164091 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--kdecore/kstandarddirs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kdecore/kstandarddirs.cpp b/kdecore/kstandarddirs.cpp
index c8b8fe553..15b661676 100644
--- a/kdecore/kstandarddirs.cpp
+++ b/kdecore/kstandarddirs.cpp
@@ -492,7 +492,7 @@ static void lookupDirectory(const TQString& path, const TQString &relPart,
while( ( ep = readdir( dp ) ) != 0L )
{
TQString fn( TQFile::decodeName(ep->d_name));
- if (fn == _dot || fn == _dotdot || fn.at(fn.length() - 1).latin1() == (QChar)QChar('~'))
+ if (fn == _dot || fn == _dotdot || fn.at(fn.length() - 1).latin1() == QChar('~').latin1())
continue;
if (!recursive && !regexp.exactMatch(fn))
@@ -771,7 +771,7 @@ void KStandardDirs::createSpecialResource(const char *type)
if (result > 0)
{
link[result] = 0;
- if (link[0] == (QChar)QChar('/'))
+ if (link[0] == QChar('/').latin1())
dir = TQFile::decodeName(link);
else
dir = TQDir::cleanDirPath(dir+TQFile::decodeName(link));