summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-03-25 09:53:33 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-03-25 10:06:26 +0100
commita0656ec6fc2b41e65f1b40dbd64f546175e2762f (patch)
treec0d3443a27d9dc10266760110e96b50cce46ef02 /fpicker
parente9c6fd6b4d09ee59b6a86942cbf001f2ba9782e6 (diff)
const OUString -> const OUStringLiteral
Mostly automated rewrite Change-Id: Ie020a083f898bc126b8fb039d4ecb2e687172da1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112965 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/iodlg.cxx2
-rw-r--r--fpicker/source/win32/shared.hxx6
-rw-r--r--fpicker/source/win32/workbench/Test_fps.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index fe199ae5a530..98c89e2b2e5e 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -235,7 +235,7 @@ namespace
if ( xProviderProps.is() )
{
Reference< XPropertySetInfo > xPropInfo = xProviderProps->getPropertySetInfo();
- const OUString sHomeDirPropertyName( "HomeDirectory" );
+ static const OUStringLiteral sHomeDirPropertyName( u"HomeDirectory" );
if ( !xPropInfo.is() || xPropInfo->hasPropertyByName( sHomeDirPropertyName ) )
{
OUString sHomeDirectory;
diff --git a/fpicker/source/win32/shared.hxx b/fpicker/source/win32/shared.hxx
index 4f822b742149..aa211a6057c1 100644
--- a/fpicker/source/win32/shared.hxx
+++ b/fpicker/source/win32/shared.hxx
@@ -21,9 +21,9 @@
#include <rtl/ustring.hxx>
-const OUString BACKSLASH("\\");
-const OUString FILTER_SEPARATOR("------------------------------------------");
-const OUString ALL_FILES_WILDCARD("*.*");
+static const OUStringLiteral BACKSLASH(u"\\");
+static const OUStringLiteral FILTER_SEPARATOR(u"------------------------------------------");
+static const OUStringLiteral ALL_FILES_WILDCARD(u"*.*");
const bool ALLOW_DUPLICATES = true;
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/fpicker/source/win32/workbench/Test_fps.cxx b/fpicker/source/win32/workbench/Test_fps.cxx
index 62bc00550cca..899f208f1f61 100644
--- a/fpicker/source/win32/workbench/Test_fps.cxx
+++ b/fpicker/source/win32/workbench/Test_fps.cxx
@@ -78,7 +78,7 @@ void TestFilterManager( Reference< XFilePicker > xFilePicker );
Reference< XMultiServiceFactory > g_xFactory;
-const OUString BMP_EXTENSION( "bmp" );
+static const OUStringLiteral BMP_EXTENSION( u"bmp" );
// a test client