From 7f305223fa6d6a1ad4a6f906b14f879cb01539be Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 2 Nov 2019 19:52:33 +0100 Subject: New loplugin:conditionalstring Change-Id: I2eab990c15f845b44a3b598571aca361dadf9ff3 Reviewed-on: https://gerrit.libreoffice.org/81946 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- desktop/source/deployment/registry/component/dp_component.cxx | 2 +- desktop/source/pkgchk/unopkg/unopkg_misc.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/source/deployment/registry/component/dp_component.cxx b/desktop/source/deployment/registry/component/dp_component.cxx index cfecf6927496..064fd9645f2f 100644 --- a/desktop/source/deployment/registry/component/dp_component.cxx +++ b/desktop/source/deployment/registry/component/dp_component.cxx @@ -423,7 +423,7 @@ void BackendImpl::initServiceRdbFiles() &oldRDB, makeURL( getCachePath(), m_commonRDB_orig), xCmdEnv, false /* no throw */ ); } - m_commonRDB = m_commonRDB_orig == "common.rdb" ? OUString("common_.rdb") : OUString("common.rdb"); + m_commonRDB = m_commonRDB_orig == "common.rdb" ? OUStringLiteral("common_.rdb") : OUStringLiteral("common.rdb"); if (oldRDB.get().is()) { cacheDir.transferContent( diff --git a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx index aea709bc8c6e..a76ea7dc5fc0 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_misc.cxx +++ b/desktop/source/pkgchk/unopkg/unopkg_misc.cxx @@ -262,7 +262,7 @@ void printf_package( if (reg.IsAmbiguous) value = "unknown"; else - value = reg.Value ? OUString("yes") : OUString("no"); + value = reg.Value ? OUStringLiteral("yes") : OUStringLiteral("no"); } else value = "n/a"; -- cgit v1.2.1