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,
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());
}
......
......@@ -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") );
......
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