From a52572740657a539cdc032c89ec744673071698b Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 15 Aug 2010 21:06:11 +0000 Subject: 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 --- kdecore/kstandarddirs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kdecore') 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)); -- cgit v1.2.1