Kaydet (Commit) 9f279e99 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Simplify string literal concatenations

Change-Id: Ibf5e9ed2716f2f22beb3b68ba7569b638f35a960
üst 16be3d07
...@@ -501,9 +501,7 @@ bool ScDocumentLoader::GetFilterName( const OUString& rFileName, ...@@ -501,9 +501,7 @@ bool ScDocumentLoader::GetFilterName( const OUString& rFileName,
void ScDocumentLoader::RemoveAppPrefix( OUString& rFilterName ) void ScDocumentLoader::RemoveAppPrefix( OUString& rFilterName )
{ {
OUStringBuffer aBuf; OUString aAppPrefix( STRING_SCAPP ": ");
aBuf.appendAscii( STRING_SCAPP).appendAscii( ": ");
OUString aAppPrefix( aBuf.makeStringAndClear());
if (rFilterName.startsWith( aAppPrefix)) if (rFilterName.startsWith( aAppPrefix))
rFilterName = rFilterName.copy( aAppPrefix.getLength()); rFilterName = rFilterName.copy( aAppPrefix.getLength());
} }
......
...@@ -2486,8 +2486,7 @@ void ScViewFunc::MoveTable( ...@@ -2486,8 +2486,7 @@ void ScViewFunc::MoveTable(
// execute without SFX_CALLMODE_RECORD, because already contained in move command // execute without SFX_CALLMODE_RECORD, because already contained in move command
OUString aUrl("private:factory/"); OUString aUrl("private:factory/" STRING_SCAPP);
aUrl += STRING_SCAPP; // "scalc"
SfxStringItem aItem( SID_FILE_NAME, aUrl ); SfxStringItem aItem( SID_FILE_NAME, aUrl );
SfxStringItem aTarget( SID_TARGETNAME, OUString("_blank") ); SfxStringItem aTarget( SID_TARGETNAME, OUString("_blank") );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment