From b052e1775a658514283e4b019830f0bd460f2e54 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 19 May 2017 17:16:19 +0200 Subject: loplugin:stringcopy: unotools Change-Id: Id7560e7b0c0aa2ad48d022198d0681e50f47cd3b --- unotools/source/config/optionsdlg.cxx | 4 ++-- unotools/source/ucbhelper/xtempfile.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/unotools/source/config/optionsdlg.cxx b/unotools/source/config/optionsdlg.cxx index 7d1f1846b0bf..471dad5a365e 100644 --- a/unotools/source/config/optionsdlg.cxx +++ b/unotools/source/config/optionsdlg.cxx @@ -32,7 +32,7 @@ using namespace utl; using namespace com::sun::star::beans; using namespace com::sun::star::uno; -#define CFG_FILENAME OUString( "Office.OptionsDialog" ) +#define CFG_FILENAME "Office.OptionsDialog" #define ROOT_NODE "OptionsDialogGroups" #define PAGES_NODE "Pages" #define OPTIONS_NODE "Options" @@ -80,7 +80,7 @@ namespace } SvtOptionsDlgOptions_Impl::SvtOptionsDlgOptions_Impl() - : ConfigItem( OUString( CFG_FILENAME ) ), + : ConfigItem( CFG_FILENAME ), m_sPathDelimiter( "/" ), m_aOptionNodeList( OptionNodeList() ) diff --git a/unotools/source/ucbhelper/xtempfile.cxx b/unotools/source/ucbhelper/xtempfile.cxx index b77dfb90eb03..7a7d8bc6b8c5 100644 --- a/unotools/source/ucbhelper/xtempfile.cxx +++ b/unotools/source/ucbhelper/xtempfile.cxx @@ -126,7 +126,7 @@ OUString SAL_CALL OTempFileService::getUri() throw css::uno::RuntimeException(); } - return OUString( mpTempFile->GetURL() ); + return mpTempFile->GetURL(); }; OUString SAL_CALL OTempFileService::getResourceName() @@ -138,7 +138,7 @@ OUString SAL_CALL OTempFileService::getResourceName() throw css::uno::RuntimeException(); } - return OUString( mpTempFile->GetFileName() ); + return mpTempFile->GetFileName(); }; // XInputStream -- cgit