summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-26 11:48:44 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-06-26 13:59:27 +0200
commit9517d5cea8068500fb8d826d22e62e6654c90484 (patch)
tree6be6becb5f31460b0d4ce6f252f0abcc77fdf143 /vcl
parent5d1d29a3bf1c5501cb094b45243ce7fd7918c5cd (diff)
Upcoming improved loplugin:elidestringvar: vcl
Change-Id: I4ffe3cfd0ed9a45607e978df88ae230ec04a152b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97204 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/font/fontmetric.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/font/fontmetric.cxx b/vcl/source/font/fontmetric.cxx
index 3b7a7ed09f7f..f1427dfadb98 100644
--- a/vcl/source/font/fontmetric.cxx
+++ b/vcl/source/font/fontmetric.cxx
@@ -269,9 +269,8 @@ void ImplFontMetricData::ImplInitFlags( const OutputDevice* pDev )
bool bCentered = true;
if (MsLangId::isCJK(rFont.GetLanguage()))
{
- const OUString sFullstop( u'\x3001' ); // Fullwidth fullstop
tools::Rectangle aRect;
- pDev->GetTextBoundRect( aRect, sFullstop );
+ pDev->GetTextBoundRect( aRect, u"\x3001" ); // Fullwidth fullstop
const auto nH = rFont.GetFontSize().Height();
const auto nB = aRect.Left();
// Use 18.75% as a threshold to define a centered fullwidth fullstop.