From c9f3277ea7bb22c395e8938168ce4df9101f7850 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 27 Sep 2017 23:44:21 +0200 Subject: loplugin:stringconstant: Simplify construction of non-ASCII OUString Change-Id: If80c53978106789824e6154db396baeecc1969dd Reviewed-on: https://gerrit.libreoffice.org/42876 Reviewed-by: Stephan Bergmann Tested-by: Stephan Bergmann --- reportdesign/source/core/api/FixedLine.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'reportdesign') 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(this)); else if ( aSize.Height < MIN_HEIGHT && m_nOrientation == 0 ) -- cgit