diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-06-05 07:36:56 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-06-05 14:20:51 +0200 |
commit | 7653e4f209a5e81860d029c8a6c5436c0b25efdb (patch) | |
tree | 63ebb6ee21be1c4f38680950c795dde1773777a3 /sfx2/source/dialog | |
parent | b1e11100f5934548911c07941050e02409020b2c (diff) |
Upcoming loplugin:elidestringvar: sfx2
Change-Id: I58b77dd04fb0de28fcbf34a22ed73fe248f0c6b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95547
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r-- | sfx2/source/dialog/dockwin.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/dialog/mailmodel.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/dialog/partwnd.cxx | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx index 926a68ab8bfa..0287b1ac1fb8 100644 --- a/sfx2/source/dialog/dockwin.cxx +++ b/sfx2/source/dialog/dockwin.cxx @@ -128,7 +128,6 @@ SfxDockingWrapper::SfxDockingWrapper( vcl::Window* pParentWnd , : SfxChildWindow( pParentWnd , nId ) { uno::Reference< uno::XComponentContext > xContext = ::comphelper::getProcessComponentContext(); - const OUString aDockWindowResourceURL( "private:resource/dockingwindow/" ); VclPtr<SfxTitleDockingWindow> pTitleDockWindow = VclPtr<SfxTitleDockingWindow>::Create( pBindings, this, pParentWnd, WB_STDDOCKWIN | WB_CLIPCHILDREN | WB_SIZEABLE | WB_3DLOOK | WB_ROLLABLE); @@ -141,7 +140,7 @@ SfxDockingWrapper::SfxDockingWrapper( vcl::Window* pParentWnd , SfxDispatcher* pDispatcher = pBindings->GetDispatcher(); uno::Reference< frame::XFrame > xFrame = pDispatcher->GetFrame()->GetFrame().GetFrameInterface(); // create a resource URL from the nId provided by the sfx2 - OUString aResourceURL = aDockWindowResourceURL + OUString::number(nId); + OUString aResourceURL = "private:resource/dockingwindow/" + OUString::number(nId); uno::Sequence<uno::Any> aArgs(comphelper::InitAnyPropertySequence( { {"Frame", uno::Any(xFrame)}, diff --git a/sfx2/source/dialog/mailmodel.cxx b/sfx2/source/dialog/mailmodel.cxx index 63e29270d6c2..a58080b601ee 100644 --- a/sfx2/source/dialog/mailmodel.cxx +++ b/sfx2/source/dialog/mailmodel.cxx @@ -432,8 +432,7 @@ SfxMailModel::SaveResult SfxMailModel::SaveDocumentAsFormat( if ( !bHasLocation ) { // Create a noname file name with the correct extension - const OUString aNoNameFileName( "noname" ); - aFileName = aNoNameFileName; + aFileName = "noname"; } else { diff --git a/sfx2/source/dialog/partwnd.cxx b/sfx2/source/dialog/partwnd.cxx index 367eb49e0d93..e387d2c5ba1c 100644 --- a/sfx2/source/dialog/partwnd.cxx +++ b/sfx2/source/dialog/partwnd.cxx @@ -105,8 +105,7 @@ SfxPartDockWnd_Impl::SfxPartDockWnd_Impl { css::uno::Reference< css::beans::XPropertySet > xLMPropSet( xFrame->getLayoutManager(), css::uno::UNO_QUERY_THROW ); - const OUString aAutomaticToolbars( "AutomaticToolbars" ); - xLMPropSet->setPropertyValue( aAutomaticToolbars, css::uno::Any( false )); + xLMPropSet->setPropertyValue( "AutomaticToolbars", css::uno::Any( false )); } catch( css::uno::RuntimeException& ) { |