Kaydet (Commit) 78afbfa1 authored tarafından Krisztian Pinter's avatar Krisztian Pinter Kaydeden (comit) Tomaž Vajngerl

Change NamedColor to use OUString

Change-Id: Id84d761b33f12dfc50f980e61ab44565693f2e5a
üst 2d37d10e
......@@ -26,7 +26,7 @@
#include <tools/stream.hxx>
typedef std::pair<Color, OString> NamedColor;
typedef std::pair<Color, OUString> NamedColor;
typedef std::vector< NamedColor > ColorList;
......
......@@ -56,7 +56,7 @@ void PaletteGPL::LoadColorSet( SvxColorValueSet& rColorSet )
it != maColors.end(); ++it)
{
// TODO make it->second OUString
rColorSet.InsertItem(nIx, it->first, OStringToOUString(it->second, RTL_TEXTENCODING_ASCII_US));
rColorSet.InsertItem(nIx, it->first, it->second);
++nIx;
}
}
......@@ -129,7 +129,9 @@ void PaletteGPL::LoadPalette()
if(nIndex != -1)
name = aLine.copy(nIndex);
maColors.push_back(std::make_pair(Color(r, g, b), name));
maColors.push_back(std::make_pair(
Color(r, g, b),
OStringToOUString(name, RTL_TEXTENCODING_ASCII_US)));
}
} while (aFile.ReadLine(aLine));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment