From e88c191dcbc8cd7dd5a59ca13c8e3bc7fcb0d184 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 18 Aug 2010 05:55:30 +0000 Subject: 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 --- kdecore/kpalette.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kdecore') 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(line.ascii()), maxLength) == -1) return; + if (paletteFile.readLine(line, maxLength) == -1) return; if (line.find(" Palette") == -1) return; - while( paletteFile.readLine(const_cast(line.ascii()), maxLength) != -1) + while( paletteFile.readLine(line, maxLength) != -1) { if (line[0] == '#') { -- cgit v1.2.1