summaryrefslogtreecommitdiff
path: root/vcl/source/edit
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:38:34 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:38:34 +0100
commit36328248309ebebee616452248d55923280deabb (patch)
tree3aec7576114f445dfe77ee1b59e332cf1f5fdc6c /vcl/source/edit
parent4d6b9053a437dc128d186f8d100ef4a351136f54 (diff)
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I7ac150458a72963f3336d30ef9d99d7c0d81c024
Diffstat (limited to 'vcl/source/edit')
-rw-r--r--vcl/source/edit/texteng.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index c65b38d4f261..b91f1bdd0d9a 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -194,10 +194,10 @@ void TextEngine::SetFont( const vcl::Font& rFont )
maFont.SetAlign( ALIGN_TOP );
mpRefDev->SetFont( maFont);
Size aTextSize;
- aTextSize.Width() = mpRefDev->GetTextWidth(OUString(" "));
+ aTextSize.Width() = mpRefDev->GetTextWidth(" ");
aTextSize.Height() = mpRefDev->GetTextHeight();
if ( !aTextSize.Width() )
- aTextSize.Width() = mpRefDev->GetTextWidth(OUString("XXXX"));
+ aTextSize.Width() = mpRefDev->GetTextWidth("XXXX");
mnDefTab = aTextSize.Width();
if ( !mnDefTab )