summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-01-30 19:09:35 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-01-31 12:04:02 +0000
commit1ef9f3988ee4dcbc77e1fdefa20442e044a67d4d (patch)
tree686b5f3247d28e19ba949b81fd5596dbe3a27401 /fpicker
parent890ebf1cc6bb58ff21da19d7fd4b9b67eaa32a9c (diff)
unnecessary use of OUString constructor
Change-Id: Idd31b0a53c8318af69bbcd32f6798721ec8eb8e1 Reviewed-on: https://gerrit.libreoffice.org/21945 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/win32/filepicker/workbench/Test_fps.cxx7
-rw-r--r--fpicker/source/win32/folderpicker/workbench/Test_fops.cxx3
2 files changed, 4 insertions, 6 deletions
diff --git a/fpicker/source/win32/filepicker/workbench/Test_fps.cxx b/fpicker/source/win32/filepicker/workbench/Test_fps.cxx
index a33f7ccad3ca..5c51f5a2c14c 100644
--- a/fpicker/source/win32/filepicker/workbench/Test_fps.cxx
+++ b/fpicker/source/win32/filepicker/workbench/Test_fps.cxx
@@ -203,11 +203,11 @@ void SAL_CALL FilePickerListener::controlStateChanged( const css::ui::dialogs::F
aValue <<= lbString;
rFPCtrlAccess->setValue( LISTBOX_VERSION, ADD_ITEM, aValue );
- lbString = OUString( L"Ein Eintrag 2" );
+ lbString = L"Ein Eintrag 2";
aValue <<= lbString;
rFPCtrlAccess->setValue( LISTBOX_VERSION, ADD_ITEM, aValue );
- lbString = OUString( L"Ein Eintrag 3" );
+ lbString = L"Ein Eintrag 3";
aValue <<= lbString;
rFPCtrlAccess->setValue( LISTBOX_VERSION, ADD_ITEM, aValue );
@@ -243,8 +243,7 @@ int SAL_CALL main(int nArgc, char* Argv[], char* Env[] )
// Get global factory for uno services.
- OUString rdbName = OUString( RDB_SYSPATH );
- Reference< XMultiServiceFactory > g_xFactory( createRegistryServiceFactory( rdbName ) );
+ Reference< XMultiServiceFactory > g_xFactory( createRegistryServiceFactory( RDB_SYSPATH ) );
// Print a message if an error occurred.
if ( g_xFactory.is() == sal_False )
diff --git a/fpicker/source/win32/folderpicker/workbench/Test_fops.cxx b/fpicker/source/win32/folderpicker/workbench/Test_fops.cxx
index ae561b4487d4..a635a467415f 100644
--- a/fpicker/source/win32/folderpicker/workbench/Test_fops.cxx
+++ b/fpicker/source/win32/folderpicker/workbench/Test_fops.cxx
@@ -75,8 +75,7 @@ int SAL_CALL main(int /*nArgc*/, char* /*Argv[]*/, char* /*Env[]*/ )
// Get global factory for uno services.
- OUString rdbName = OUString( RDB_SYSPATH );
- Reference< XMultiServiceFactory > g_xFactory( createRegistryServiceFactory( rdbName ) );
+ Reference< XMultiServiceFactory > g_xFactory( createRegistryServiceFactory( RDB_SYSPATH ) );
// Print a message if an error occurred.
if ( g_xFactory.is() == sal_False )