summaryrefslogtreecommitdiff
path: root/vcl/source/font
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-28 17:53:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-28 18:26:54 +0200
commitef2c0e73630d3c74f6fc3eda8416488356ff1b7d (patch)
treefa2e682ec371c6d985ed8317f9bcd35dd577307b /vcl/source/font
parent229b3a3e0a74c8fa3a1629fc1dbf858dcf2a9c50 (diff)
loplugin:salunicodeliteral: vcl
Change-Id: I4a982da10ad76f8ae05355cec9629b906c95afdb
Diffstat (limited to 'vcl/source/font')
-rw-r--r--vcl/source/font/fontmetric.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/font/fontmetric.cxx b/vcl/source/font/fontmetric.cxx
index b397684136e0..a255d0403847 100644
--- a/vcl/source/font/fontmetric.cxx
+++ b/vcl/source/font/fontmetric.cxx
@@ -324,7 +324,7 @@ void ImplFontMetricData::ImplInitTextLineSize( const OutputDevice* pDev )
bool bCentered = true;
if (MsLangId::isCJK(rFont.GetLanguage()))
{
- const OUString sFullstop( sal_Unicode( 0x3001 ) ); // Fullwidth fullstop
+ const OUString sFullstop( u'\x3001' ); // Fullwidth fullstop
tools::Rectangle aRect;
pDev->GetTextBoundRect( aRect, sFullstop );
const sal_uInt16 nH = rFont.GetFontSize().Height();
@@ -335,7 +335,7 @@ void ImplFontMetricData::ImplInitTextLineSize( const OutputDevice* pDev )
}
SetFullstopCenteredFlag( bCentered );
- mnBulletOffset = ( pDev->GetTextWidth( OUString( sal_Unicode( 0x20 ) ) ) - pDev->GetTextWidth( OUString( sal_Unicode( 0xb7 ) ) ) ) >> 1 ;
+ mnBulletOffset = ( pDev->GetTextWidth( OUString( u' ' ) ) - pDev->GetTextWidth( OUString( u'\x00b7' ) ) ) >> 1 ;
}