summaryrefslogtreecommitdiffstats
path: root/kdecore/kpalette.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdecore/kpalette.cpp')
-rw-r--r--kdecore/kpalette.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kdecore/kpalette.cpp b/kdecore/kpalette.cpp
index bc446367a..6dc1800f1 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(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] == '#')
{