diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-20 09:51:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-20 13:34:43 +0200 |
commit | b08a2b299418db84a71fe625f127f0484746010e (patch) | |
tree | 544ad8a8c1d6c9b12f27f1771fe27ab8714ab4d4 /sfx2 | |
parent | bff2b8bf2b0ae47f6e59639db0544212398363ac (diff) |
use OUString::Concat here, not OUStringLiteral
Change-Id: Ia2172bcab60f32c9d9d4f6ca0230484343eef69b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114321
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/sfxhelp.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/SfxDocumentMetaData.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx index 340b8c437d7d..eee01d48f056 100644 --- a/sfx2/source/appl/sfxhelp.cxx +++ b/sfx2/source/appl/sfxhelp.cxx @@ -869,7 +869,7 @@ bool rewriteFlatpakHelpRootUrl(OUString * helpRootUrl) { // /.../runtime/org.libreoffice.LibreOffice.Help/<arch>/<branch>/<sha>/files // because the extension's files are stored at a different place than the app's files, // so use this hack until flatpak itself provides a better solution: - static constexpr auto segments = OUStringLiteral(u"/app/org.libreoffice.LibreOffice/"); + static constexpr OUStringLiteral segments = u"/app/org.libreoffice.LibreOffice/"; auto const i1 = path.lastIndexOf(segments); // use lastIndexOf instead of indexOf, in case the user-controlled prefix /.../ // happens to contain such segments diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx index 476b8c6ae41e..a02010e0b3a7 100644 --- a/sfx2/source/doc/SfxDocumentMetaData.cxx +++ b/sfx2/source/doc/SfxDocumentMetaData.cxx @@ -1753,7 +1753,7 @@ SfxDocumentMetaData::loadFromStorage( try { xPropArg->getPropertyValue("BaseURI") >>= input.sSystemId; - input.sSystemId += OUStringLiteral(u"/") + s_meta; + input.sSystemId += OUString::Concat("/") + s_meta; } catch (const css::uno::Exception &) { input.sSystemId = s_meta; } |