diff options
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/appl/sfxhelp.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/filedlghelper.cxx | 14 | ||||
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx index 1c4152fb9936..bd559af59fde 100644 --- a/sfx2/source/appl/sfxhelp.cxx +++ b/sfx2/source/appl/sfxhelp.cxx @@ -703,7 +703,7 @@ bool SfxHelp::Start(const OUString& rURL, weld::Widget* pWidget) /// Redirect the vnd.sun.star.help:// urls to http://help.libreoffice.org static bool impl_showOnlineHelp( const OUString& rURL ) { - static const OUString aInternal("vnd.sun.star.help://"); + static const OUStringLiteral aInternal("vnd.sun.star.help://"); if ( rURL.getLength() <= aInternal.getLength() || !rURL.startsWith(aInternal) ) return false; diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index a747959699e8..f05a33f1e2c2 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -121,13 +121,13 @@ namespace } } -static const OUString* GetLastFilterConfigId( FileDialogHelper::Context _eContext ) +static const OUStringLiteral* GetLastFilterConfigId( FileDialogHelper::Context _eContext ) { - static const OUString aSD_EXPORT_IDENTIFIER("SdExportLastFilter"); - static const OUString aSI_EXPORT_IDENTIFIER("SiExportLastFilter"); - static const OUString aSW_EXPORT_IDENTIFIER("SwExportLastFilter"); + static const OUStringLiteral aSD_EXPORT_IDENTIFIER("SdExportLastFilter"); + static const OUStringLiteral aSI_EXPORT_IDENTIFIER("SiExportLastFilter"); + static const OUStringLiteral aSW_EXPORT_IDENTIFIER("SwExportLastFilter"); - const OUString* pRet = nullptr; + const OUStringLiteral* pRet = nullptr; switch( _eContext ) { @@ -344,7 +344,7 @@ void FileDialogHelper_Impl::LoadLastUsedFilter( const OUString& _rContextIdentif void FileDialogHelper_Impl::SaveLastUsedFilter() { - const OUString* pConfigId = GetLastFilterConfigId( meContext ); + const OUStringLiteral* pConfigId = GetLastFilterConfigId( meContext ); if( pConfigId ) SvtViewOptions( EViewType::Dialog, IODLG_CONFIGNAME ).SetUserItem( *pConfigId, makeAny( getFilterWithExtension( getFilter() ) ) ); @@ -2255,7 +2255,7 @@ void FileDialogHelper_Impl::SetContext( FileDialogHelper::Context _eNewContext ) { meContext = _eNewContext; - const OUString* pConfigId = GetLastFilterConfigId( _eNewContext ); + const OUStringLiteral* pConfigId = GetLastFilterConfigId( _eNewContext ); if( pConfigId ) LoadLastUsedFilter( *pConfigId ); } diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 0d4f04702d3c..76c929e1ee76 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -1106,7 +1106,7 @@ private: static OUString lcl_strip_template(const OUString &aString) { - static const OUString sPostfix("_template"); + static const OUStringLiteral sPostfix("_template"); OUString sRes(aString); if (sRes.endsWith(sPostfix)) sRes = sRes.copy(0, sRes.getLength() - sPostfix.getLength()); |