diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-01-12 15:20:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-01-12 21:08:39 +0100 |
commit | 1b131be9e5a5a5e172bfcd3e1fa577d7ddb3033a (patch) | |
tree | fc4b17d06167a71704dcbb0168c674218e097a35 /embedserv | |
parent | 75156c3edf90f66a5622e2a81b11079b77ad8952 (diff) |
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>
Diffstat (limited to 'embedserv')
-rw-r--r-- | embedserv/source/embed/docholder.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/embedserv/source/embed/docholder.cxx b/embedserv/source/embed/docholder.cxx index ecaeede416b7..762352579d94 100644 --- a/embedserv/source/embed/docholder.cxx +++ b/embedserv/source/embed/docholder.cxx @@ -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 ); } |