summaryrefslogtreecommitdiff
path: root/svtools/source/urlobj
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-26 13:54:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-26 13:55:34 +0200
commitcec3fd6de65a0f526c2b990e8dc54935d0a7864a (patch)
tree613719264eddc919fbb1758cdbe48549cbb8f7eb /svtools/source/urlobj
parentc92853c93e537b75444ea2852777d73390de1b1a (diff)
loplugin:stringconstant: handle OUString+=OUString(literal)
Change-Id: I655751536bd084d01bce436c043eca754c58849f
Diffstat (limited to 'svtools/source/urlobj')
-rw-r--r--svtools/source/urlobj/inetimg.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/svtools/source/urlobj/inetimg.cxx b/svtools/source/urlobj/inetimg.cxx
index 51ef978ee0bb..d1b7fd74717c 100644
--- a/svtools/source/urlobj/inetimg.cxx
+++ b/svtools/source/urlobj/inetimg.cxx
@@ -32,14 +32,14 @@ bool INetImage::Write( SvStream& rOStm, SotClipboardFormatId nFormat ) const
{
case SotClipboardFormatId::INET_IMAGE:
{
- OUString sString;
- (sString += aImageURL ) += OUString(TOKEN_SEPARATOR);
- (sString += aTargetURL ) += OUString(TOKEN_SEPARATOR);
- (sString += aTargetFrame ) += OUString(TOKEN_SEPARATOR);
- (sString += aAlternateText ) += OUString(TOKEN_SEPARATOR);
- sString += OUString::number( aSizePixel.Width() );
- sString += OUString(TOKEN_SEPARATOR);
- sString += OUString::number( aSizePixel.Height() );
+ OUString sString(
+ aImageURL + OUStringLiteral1<TOKEN_SEPARATOR>() + aTargetURL
+ + OUStringLiteral1<TOKEN_SEPARATOR>() + aTargetFrame
+ + OUStringLiteral1<TOKEN_SEPARATOR>() + aAlternateText
+ + OUStringLiteral1<TOKEN_SEPARATOR>()
+ + OUString::number(aSizePixel.Width())
+ + OUStringLiteral1<TOKEN_SEPARATOR>()
+ + OUString::number(aSizePixel.Height()));
OString sOut(OUStringToOString(sString,
RTL_TEXTENCODING_UTF8));