From 514f4e398a6d2d40327ffc72b127fc6ee7a38526 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 29 Apr 2009 20:01:36 +0200 Subject: Made sure the right overloads are used --- src/gui/palette.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gui/palette.cpp') diff --git a/src/gui/palette.cpp b/src/gui/palette.cpp index 855487d3..f46eeb92 100644 --- a/src/gui/palette.cpp +++ b/src/gui/palette.cpp @@ -155,7 +155,7 @@ Palette::~Palette() { char buffer[20]; sprintf(buffer, "0x%06x", col->getRGB()); - config.setValue(*configName, buffer); + config.setValue(*configName, std::string(buffer)); } } } @@ -271,7 +271,8 @@ void Palette::addColor(Palette::ColorType type, int rgb, const std::string *configName = &ColorTypeNames[type]; char buffer[20]; sprintf(buffer, "0x%06x", rgb); - const std::string rgbString = config.getValue(*configName, buffer); + const std::string rgbString = config.getValue(*configName, + std::string(buffer)); unsigned int rgbValue = 0; if (rgbString.length() == 8 && rgbString[0] == '0' && rgbString[1] == 'x') rgbValue = atox(rgbString); -- cgit v1.2.3-70-g09d2