Fixed a few minor compilation errors

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1162855 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent e6e12dd07c
commit 58cfbf297a

@ -65,10 +65,10 @@ KPalette::KPalette(const TQString &name)
// Read first line
// Expected "GIMP Palette"
if (paletteFile.readLine(line.ascii(), maxLength) == -1) return;
if (paletteFile.readLine(const_cast<char *>(line.ascii()), maxLength) == -1) return;
if (line.find(" Palette") == -1) return;
while( paletteFile.readLine(line.ascii(), maxLength) != -1)
while( paletteFile.readLine(const_cast<char *>(line.ascii()), maxLength) != -1)
{
if (line[0] == '#')
{

@ -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 || (TQCString)(fn.at(fn.length() - 1).latin1()) == (QChar)'~')
if (fn == _dot || fn == _dotdot || (TQCString)(fn.at(fn.length() - 1).latin1()) == '~')
continue;
if (!recursive && !regexp.exactMatch(fn))

Loading…
Cancel
Save