diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-26 13:54:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-26 13:55:34 +0200 |
commit | cec3fd6de65a0f526c2b990e8dc54935d0a7864a (patch) | |
tree | 613719264eddc919fbb1758cdbe48549cbb8f7eb /svtools/source/urlobj | |
parent | c92853c93e537b75444ea2852777d73390de1b1a (diff) |
loplugin:stringconstant: handle OUString+=OUString(literal)
Change-Id: I655751536bd084d01bce436c043eca754c58849f
Diffstat (limited to 'svtools/source/urlobj')
-rw-r--r-- | svtools/source/urlobj/inetimg.cxx | 16 |
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)); |