summaryrefslogtreecommitdiff
path: root/svtools/source/uno/toolboxcontroller.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-13 13:14:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-14 12:15:07 +0200
commit34d8eb4d3f2a75a3a072f5f6a443f959ba99113c (patch)
tree4f9e5ee058152111ed559369ac2a490ad3d06153 /svtools/source/uno/toolboxcontroller.cxx
parent2d009c405714934ae5f95f4131510cb4e9c2493f (diff)
clang-tidy modernize-pass-by-value in svtools
Change-Id: I60e7373c924a479fed72eb4f0538006e3e422004 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137019 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/uno/toolboxcontroller.cxx')
-rw-r--r--svtools/source/uno/toolboxcontroller.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/uno/toolboxcontroller.cxx b/svtools/source/uno/toolboxcontroller.cxx
index df28e6f8f069..8fe4eb37c621 100644
--- a/svtools/source/uno/toolboxcontroller.cxx
+++ b/svtools/source/uno/toolboxcontroller.cxx
@@ -26,6 +26,7 @@
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/frame/XLayoutManager.hpp>
#include <com/sun/star/util/URLTransformer.hpp>
+#include <utility>
#include <vcl/commandinfoprovider.hxx>
#include <vcl/svapp.hxx>
#include <toolkit/helper/vclunohelper.hxx>
@@ -52,7 +53,7 @@ namespace svt
ToolboxController::ToolboxController(
const Reference< XComponentContext >& rxContext,
const Reference< XFrame >& xFrame,
- const OUString& aCommandURL ) :
+ OUString aCommandURL ) :
OPropertyContainer( GetBroadcastHelper() )
, m_bSupportVisible( false )
, m_bInitialized( false )
@@ -61,7 +62,7 @@ ToolboxController::ToolboxController(
, m_nToolBoxId( SAL_MAX_UINT16 )
, m_xFrame( xFrame )
, m_xContext( rxContext )
- , m_aCommandURL( aCommandURL )
+ , m_aCommandURL(std::move( aCommandURL ))
, m_aListenerContainer( m_aMutex )
, m_pToolbar(nullptr)
, m_pBuilder(nullptr)