diff options
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/app/app.cxx | 2 | ||||
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_dialog2.cxx | 2 | ||||
-rw-r--r-- | desktop/source/deployment/registry/dp_backend.cxx | 2 | ||||
-rw-r--r-- | desktop/source/lib/init.cxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index ba244fd8c268..0cc6c649e7e1 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -1257,7 +1257,7 @@ int Desktop::Main() CommandLineArgs& rCmdLineArgs = GetCommandLineArgs(); #if HAVE_FEATURE_DESKTOP - OUString aUnknown( rCmdLineArgs.GetUnknown() ); + const OUString& aUnknown( rCmdLineArgs.GetUnknown() ); if ( !aUnknown.isEmpty() ) { displayCmdlineHelp( aUnknown ); diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx index c31088a88a8f..b36f18d8f5dc 100644 --- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx +++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx @@ -674,7 +674,7 @@ bool ExtMgrDialog::acceptLicense( const uno::Reference< deployment::XPackage > & uno::Sequence< OUString > ExtMgrDialog::raiseAddPicker() { sfx2::FileDialogHelper aDlgHelper(ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, FileDialogFlags::NONE, GetFrameWeld()); - const uno::Reference<ui::dialogs::XFilePicker3> xFilePicker = aDlgHelper.GetFilePicker(); + const uno::Reference<ui::dialogs::XFilePicker3>& xFilePicker = aDlgHelper.GetFilePicker(); xFilePicker->setTitle( m_sAddPackages ); if ( !m_sLastFolderURL.isEmpty() ) diff --git a/desktop/source/deployment/registry/dp_backend.cxx b/desktop/source/deployment/registry/dp_backend.cxx index f6108abab34c..58049f46e9b9 100644 --- a/desktop/source/deployment/registry/dp_backend.cxx +++ b/desktop/source/deployment/registry/dp_backend.cxx @@ -218,7 +218,7 @@ OUString PackageRegistryBackend::createFolder( const OUString baseDir(sDataFolder); ::utl::TempFile aTemp(&baseDir, true); - const OUString url = aTemp.GetURL(); + const OUString& url = aTemp.GetURL(); return sDataFolder + url.copy(url.lastIndexOf('/')); } diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 6f080c5e0316..85b188b15e84 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2888,7 +2888,7 @@ static char* getFontSubset (const OString& aFontName) { FontCharMapRef xFontCharMap (new FontCharMap()); auto aDevice(VclPtr<VirtualDevice>::Create(nullptr, Size(1, 1), DeviceFormat::DEFAULT)); - vcl::Font aFont(pList->GetFontName(nItFont)); + const vcl::Font& aFont(pList->GetFontName(nItFont)); aDevice->SetFont(aFont); aDevice->GetFontCharMap(xFontCharMap); |