diff options
Diffstat (limited to 'svx/source/accessibility/lookupcolorname.cxx')
-rw-r--r-- | svx/source/accessibility/lookupcolorname.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/svx/source/accessibility/lookupcolorname.cxx b/svx/source/accessibility/lookupcolorname.cxx index feffea69fe18..29f517a5edf4 100644 --- a/svx/source/accessibility/lookupcolorname.cxx +++ b/svx/source/accessibility/lookupcolorname.cxx @@ -102,10 +102,7 @@ OUString ColorNameMap::lookUp(long color) const { return i->second; } // Did not find the given color; return its RGB tuple representation: - OUStringBuffer buf; - buf.append('#'); - buf.append(color, 16); - return buf.makeStringAndClear(); + return "#" + OUString::number(color, 16); } struct theColorNameMap: public rtl::Static< ColorNameMap, theColorNameMap > {}; |