summaryrefslogtreecommitdiff
path: root/vcl/source/outdev
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-30 15:30:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-30 15:30:04 +0200
commit8baef341d5a6f6199f4bce2ab88d53b471d7a760 (patch)
tree0444056b8ef4cb2822073a59484846c41bd52eeb /vcl/source/outdev
parente29b6be3c4c7843459ba7b9307af3272c4d94fff (diff)
loplugin:stringconstant: adapt to improved OUStringLiteral1 (vcl)
Change-Id: Ic04f33413713b592c10ebf27c1e3460a44e3794f
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r--vcl/source/outdev/text.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx
index 4368113c807d..8dfd44ddf2fe 100644
--- a/vcl/source/outdev/text.cxx
+++ b/vcl/source/outdev/text.cxx
@@ -881,7 +881,7 @@ void OutputDevice::DrawText( const Point& rStartPt, const OUString& rStr,
{
pVector->push_back( *it );
if( pDisplayText )
- *pDisplayText += OUString(rStr[ nIndex ]);
+ *pDisplayText += OUStringLiteral1(rStr[ nIndex ]);
bInserted = true;
}
}
@@ -2043,7 +2043,7 @@ OUString OutputDevice::ImplGetEllipsisString( const OutputDevice& rTargetDevice,
}
if ( aStr.isEmpty() && (nStyle & DrawTextFlags::Clip) )
- aStr += OUString(rOrigStr[ 0 ]);
+ aStr += OUStringLiteral1(rOrigStr[ 0 ]);
}
else if ( nStyle & DrawTextFlags::PathEllipsis )
{