summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-11 10:04:14 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-11 10:04:26 +0200
commit9f279e9902b07a07505fe7191e8b0a1d3db81c57 (patch)
tree9d4b26bee66a3bde6fb3479a410cd5ecf4658764 /sc
parent16be3d0737d87d5a0715dfdce52d38f1b588e450 (diff)
Simplify string literal concatenations
Change-Id: Ibf5e9ed2716f2f22beb3b68ba7569b638f35a960
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/tablink.cxx4
-rw-r--r--sc/source/ui/view/viewfun2.cxx3
2 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/ui/docshell/tablink.cxx b/sc/source/ui/docshell/tablink.cxx
index b6255d1090ed..8b52e3799461 100644
--- a/sc/source/ui/docshell/tablink.cxx
+++ b/sc/source/ui/docshell/tablink.cxx
@@ -501,9 +501,7 @@ bool ScDocumentLoader::GetFilterName( const OUString& rFileName,
void ScDocumentLoader::RemoveAppPrefix( OUString& rFilterName )
{
- OUStringBuffer aBuf;
- aBuf.appendAscii( STRING_SCAPP).appendAscii( ": ");
- OUString aAppPrefix( aBuf.makeStringAndClear());
+ OUString aAppPrefix( STRING_SCAPP ": ");
if (rFilterName.startsWith( aAppPrefix))
rFilterName = rFilterName.copy( aAppPrefix.getLength());
}
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 5f1f59284535..c848d08ebc62 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -2486,8 +2486,7 @@ void ScViewFunc::MoveTable(
// execute without SFX_CALLMODE_RECORD, because already contained in move command
- OUString aUrl("private:factory/");
- aUrl += STRING_SCAPP; // "scalc"
+ OUString aUrl("private:factory/" STRING_SCAPP);
SfxStringItem aItem( SID_FILE_NAME, aUrl );
SfxStringItem aTarget( SID_TARGETNAME, OUString("_blank") );