diff options
Diffstat (limited to 'chart2/source/tools/UncachedDataSequence.cxx')
-rw-r--r-- | chart2/source/tools/UncachedDataSequence.cxx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/chart2/source/tools/UncachedDataSequence.cxx b/chart2/source/tools/UncachedDataSequence.cxx index b07fc11ad9f2..ddf80d52b221 100644 --- a/chart2/source/tools/UncachedDataSequence.cxx +++ b/chart2/source/tools/UncachedDataSequence.cxx @@ -26,6 +26,7 @@ #include <algorithm> #include <strings.hrc> #include <ResId.hxx> +#include <utility> using namespace ::com::sun::star; @@ -54,27 +55,27 @@ namespace chart { UncachedDataSequence::UncachedDataSequence( - const rtl::Reference< InternalDataProvider > & xIntDataProv, - const OUString & rRangeRepresentation ) + rtl::Reference< InternalDataProvider > xIntDataProv, + OUString aRangeRepresentation ) : OPropertyContainer( GetBroadcastHelper()), UncachedDataSequence_Base( GetMutex()), m_nNumberFormatKey(0), - m_xDataProvider( xIntDataProv ), - m_aSourceRepresentation( rRangeRepresentation ), + m_xDataProvider(std::move( xIntDataProv )), + m_aSourceRepresentation(std::move( aRangeRepresentation )), m_xModifyEventForwarder( new ModifyEventForwarder() ) { registerProperties(); } UncachedDataSequence::UncachedDataSequence( - const rtl::Reference< InternalDataProvider > & xIntDataProv, - const OUString & rRangeRepresentation, + rtl::Reference< InternalDataProvider > xIntDataProv, + OUString aRangeRepresentation, const OUString & rRole ) : OPropertyContainer( GetBroadcastHelper()), UncachedDataSequence_Base( GetMutex()), m_nNumberFormatKey(0), - m_xDataProvider( xIntDataProv ), - m_aSourceRepresentation( rRangeRepresentation ), + m_xDataProvider(std::move( xIntDataProv )), + m_aSourceRepresentation(std::move( aRangeRepresentation )), m_xModifyEventForwarder( new ModifyEventForwarder() ) { registerProperties(); |