Simplify some string construction

(motivated by clang-cl loplugin:stringliteralvar)

Change-Id: Iab08e6128a52710fd7d41f0731ac044c00e7d454
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109173
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2021-01-12 21:08:39 +01:00
parent 75156c3edf
commit 1b131be9e5
+1 -6
View File
@@ -953,12 +953,7 @@ void DocumentHolder::setTitle(const OUString& aDocumentName)
}
}
// set the title
static const sal_Unicode u[] = { ' ','(',0 };
static const sal_Unicode c[] = { ')',0 };
OUString aTotalName(m_aFilterName);
aTotalName += OUString(u);
aTotalName += aDocumentName;
aTotalName += OUString(c);
OUString aTotalName(m_aFilterName + " (" + aDocumentName + ")");
try {
m_xFrame->setTitle( aTotalName );
}