diff options
-rw-r--r-- | sc/source/ui/docshell/tablink.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/view/viewfun2.cxx | 3 |
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") ); |