summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/DeckTitleBar.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/sidebar/DeckTitleBar.cxx')
-rw-r--r--sfx2/source/sidebar/DeckTitleBar.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/DeckTitleBar.cxx b/sfx2/source/sidebar/DeckTitleBar.cxx
index 2a9bbb287261..44b9387dc14d 100644
--- a/sfx2/source/sidebar/DeckTitleBar.cxx
+++ b/sfx2/source/sidebar/DeckTitleBar.cxx
@@ -20,6 +20,7 @@
#include <sidebar/DeckTitleBar.hxx>
#include <sfx2/sidebar/Theme.hxx>
+#include <utility>
#include <vcl/bitmapex.hxx>
#include <vcl/customweld.hxx>
#include <vcl/outdev.hxx>
@@ -60,12 +61,12 @@ public:
DeckTitleBar::DeckTitleBar (const OUString& rsTitle,
weld::Builder& rBuilder,
- const std::function<void()>& rCloserAction)
+ std::function<void()> aCloserAction)
: TitleBar(rBuilder, Theme::Color_DeckTitleBarBackground)
, mxGripWidget(new GripWidget)
, mxGripWeld(new weld::CustomWeld(rBuilder, "grip", *mxGripWidget))
, mxLabel(rBuilder.weld_label("label"))
- , maCloserAction(rCloserAction)
+ , maCloserAction(std::move(aCloserAction))
, mbIsCloserVisible(false)
{
mxLabel->set_label(rsTitle);