sc/source/ui/docshell/tablink.cxx | 4 +--- sc/source/ui/view/viewfun2.cxx | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-)
New commits: commit 9f279e9902b07a07505fe7191e8b0a1d3db81c57 Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Oct 11 10:04:14 2013 +0200 Simplify string literal concatenations Change-Id: Ibf5e9ed2716f2f22beb3b68ba7569b638f35a960 diff --git a/sc/source/ui/docshell/tablink.cxx b/sc/source/ui/docshell/tablink.cxx index b6255d1..8b52e37 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 5f1f592..c848d08 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") ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits