diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-05-28 13:52:45 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-05-28 14:40:56 +0200 |
commit | 77594e0a2373da1374e71ddbd05d4919344440cf (patch) | |
tree | cd0112ad9adde73fb2e9b88905b3dda5fd3d45ef /starmath | |
parent | 61328e692cf0f843631bdb2bd36daceb4883a948 (diff) |
starmath: directly create utf8 OUString
This fixes:
warn:rtl.string:14867:1:sal/rtl/strtmpl.cxx:1269: rtl_uString_newFromLiteral - Found char > 127
Change-Id: I1f868406501c83918fc3c06dd0b68eb1f6604f26
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index 2a268f064ad2..2845b7505686 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -481,7 +481,7 @@ void SmElementsControl::addElements(const sal_uInt16 aElementsArray[][2], sal_uI addSeparator(); } else { if (aElementId == RID_NEWLINE) - addElement(OStringToOUString( "\xe2\x86\xb5", RTL_TEXTENCODING_UTF8 ), SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp)); + addElement(OUString( "\xe2\x86\xb5", 3, RTL_TEXTENCODING_UTF8 ), SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp)); else if (aElementId == RID_SBLANK) addElement("\"`\"", SM_RESSTR(aElementId), SM_RESSTR(aElementIdHelp)); else if (aElementId == RID_BLANK) |