summaryrefslogtreecommitdiff
path: root/include/comphelper/unique_disposing_ptr.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/comphelper/unique_disposing_ptr.hxx')
-rw-r--r--include/comphelper/unique_disposing_ptr.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/comphelper/unique_disposing_ptr.hxx b/include/comphelper/unique_disposing_ptr.hxx
index 7bed79c43110..5994799fc4bb 100644
--- a/include/comphelper/unique_disposing_ptr.hxx
+++ b/include/comphelper/unique_disposing_ptr.hxx
@@ -18,6 +18,7 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <o3tl/deleter.hxx>
+#include <utility>
#include <vcl/svapp.hxx>
namespace comphelper
@@ -76,9 +77,9 @@ private:
unique_disposing_ptr<T>& m_rItem;
bool const mbComponentDLL;
public:
- TerminateListener(const css::uno::Reference< css::lang::XComponent > &rComponent,
+ TerminateListener(css::uno::Reference< css::lang::XComponent > xComponent,
unique_disposing_ptr<T>& rItem, bool bComponentDLL) :
- m_xComponent(rComponent),
+ m_xComponent(std::move(xComponent)),
m_rItem(rItem),
mbComponentDLL(bComponentDLL)
{