summaryrefslogtreecommitdiffstats
path: root/kdecore
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-18 05:55:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-18 05:55:30 +0000
commite88c191dcbc8cd7dd5a59ca13c8e3bc7fcb0d184 (patch)
tree89eb4ff7f56e2f0a94abc9df2aae7ed9c97aecc9 /kdecore
parent2de1f0b1e30cfe1902f7183d9421f568cec7b7be (diff)
downloadtdelibs-e88c191dcbc8cd7dd5a59ca13c8e3bc7fcb0d184.tar.gz
tdelibs-e88c191dcbc8cd7dd5a59ca13c8e3bc7fcb0d184.zip
Hopefully fixed crash when adding custom color in kpalette
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1164953 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore')
-rw-r--r--kdecore/kpalette.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kdecore/kpalette.cpp b/kdecore/kpalette.cpp
index 6dc1800f1..49cacc79b 100644
--- a/kdecore/kpalette.cpp
+++ b/kdecore/kpalette.cpp
@@ -65,10 +65,10 @@ KPalette::KPalette(const TQString &name)
// Read first line
// Expected "GIMP Palette"
- if (paletteFile.readLine(const_cast<char *>(line.ascii()), maxLength) == -1) return;
+ if (paletteFile.readLine(line, maxLength) == -1) return;
if (line.find(" Palette") == -1) return;
- while( paletteFile.readLine(const_cast<char *>(line.ascii()), maxLength) != -1)
+ while( paletteFile.readLine(line, maxLength) != -1)
{
if (line[0] == '#')
{