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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user