summaryrefslogtreecommitdiff
path: root/chart2/source/model/main/Diagram.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/model/main/Diagram.cxx')
-rw-r--r--chart2/source/model/main/Diagram.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/chart2/source/model/main/Diagram.cxx b/chart2/source/model/main/Diagram.cxx
index b1cfa0786f83..f6d746ff8cbc 100644
--- a/chart2/source/model/main/Diagram.cxx
+++ b/chart2/source/model/main/Diagram.cxx
@@ -44,6 +44,7 @@
#include <tools/diagnose_ex.h>
#include <algorithm>
+#include <utility>
using namespace ::com::sun::star;
using namespace ::com::sun::star::beans::PropertyAttribute;
@@ -245,9 +246,9 @@ void lcl_CloneCoordinateSystems(
namespace chart
{
-Diagram::Diagram( uno::Reference< uno::XComponentContext > const & xContext ) :
+Diagram::Diagram( uno::Reference< uno::XComponentContext > xContext ) :
::property::OPropertySet( m_aMutex ),
- m_xContext( xContext ),
+ m_xContext(std::move( xContext )),
m_xModifyEventForwarder( new ModifyEventForwarder() )
{
// Set camera position to a default position (that should be set hard, so