summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-09-27 23:44:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-09-28 08:27:11 +0200
commitc9f3277ea7bb22c395e8938168ce4df9101f7850 (patch)
treeb155ca6e534e751cd2c4ba4b2ead8a181bbafa22 /reportdesign
parent0fa21336428b286d69684cfbb7b845f123657041 (diff)
loplugin:stringconstant: Simplify construction of non-ASCII OUString
Change-Id: If80c53978106789824e6154db396baeecc1969dd Reviewed-on: https://gerrit.libreoffice.org/42876 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/core/api/FixedLine.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/reportdesign/source/core/api/FixedLine.cxx b/reportdesign/source/core/api/FixedLine.cxx
index be9c96ccdd64..3b79e32d785f 100644
--- a/reportdesign/source/core/api/FixedLine.cxx
+++ b/reportdesign/source/core/api/FixedLine.cxx
@@ -510,8 +510,7 @@ awt::Size SAL_CALL OFixedLine::getSize( )
void SAL_CALL OFixedLine::setSize( const awt::Size& aSize )
{
- const char hundredthmmC[] = "0\xe2\x80\x89\xC2\xB5""m"; // in UTF-8: 0, thin space, µ (micro), m (meter)
- const OUString hundredthmm(hundredthmmC, sizeof(hundredthmmC)-1, RTL_TEXTENCODING_UTF8);
+ const OUString hundredthmm(u"0\u2009\u00B5m"); // 0, thin space, µ (micro), m (meter)
if ( aSize.Width < MIN_WIDTH && m_nOrientation == 1 )
throw beans::PropertyVetoException("Too small width for FixedLine; minimum is " + OUString::number(MIN_WIDTH) + hundredthmm, static_cast<cppu::OWeakObject*>(this));
else if ( aSize.Height < MIN_HEIGHT && m_nOrientation == 0 )