diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-28 22:47:02 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-29 11:44:44 +0000 |
commit | bdd60f1f5e0b995572321fd0865ccb8849d8ed76 (patch) | |
tree | 36fd199eded442f12c223a6b9830e5202c85855c /sw/source/uibase/wrtsh/wrtsh2.cxx | |
parent | 2c10714426cc813c36aa82e4870b7b51c5c03050 (diff) |
Adapt loplugin:stringconstant to improved OUStringLiteral1
Change-Id: Ibc5128df8bcf8cb5f2f09551c0de6dfdb46bdee0
Reviewed-on: https://gerrit.libreoffice.org/28447
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source/uibase/wrtsh/wrtsh2.cxx')
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh2.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx b/sw/source/uibase/wrtsh/wrtsh2.cxx index aba44d2265bc..5b65e86a5ecd 100644 --- a/sw/source/uibase/wrtsh/wrtsh2.cxx +++ b/sw/source/uibase/wrtsh/wrtsh2.cxx @@ -553,10 +553,10 @@ void SwWrtShell::NavigatorPaste( const NaviContentBookmark& rBkmk, else { SwSectionData aSection( FILE_LINK_SECTION, GetUniqueSectionName() ); - OUString aLinkFile( rBkmk.GetURL().getToken(0, '#') ); - aLinkFile += OUString(sfx2::cTokenSeparator); - aLinkFile += OUString(sfx2::cTokenSeparator); - aLinkFile += rBkmk.GetURL().getToken(1, '#'); + OUString aLinkFile = rBkmk.GetURL().getToken(0, '#') + + OUStringLiteral1<sfx2::cTokenSeparator>() + + OUStringLiteral1<sfx2::cTokenSeparator>() + + rBkmk.GetURL().getToken(1, '#'); aSection.SetLinkFileName( aLinkFile ); aSection.SetProtectFlag( true ); const SwSection* pIns = InsertSection( aSection ); |