diff options
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/abpilot/datasourcehandling.cxx | 7 | ||||
-rw-r--r-- | extensions/source/abpilot/datasourcehandling.hxx | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/extensions/source/abpilot/datasourcehandling.cxx b/extensions/source/abpilot/datasourcehandling.cxx index 3b809697bdde..6c09d1dce2f4 100644 --- a/extensions/source/abpilot/datasourcehandling.cxx +++ b/extensions/source/abpilot/datasourcehandling.cxx @@ -328,7 +328,6 @@ namespace abp *this = _rSource; } - ODataSource& ODataSource::operator=( const ODataSource& _rSource ) { if( this != &_rSource ) @@ -338,13 +337,17 @@ namespace abp return *this; } + ODataSource& ODataSource::operator=( ODataSource&& _rSource ) + { + m_pImpl = std::move(_rSource.m_pImpl); + return *this; + } ODataSource::ODataSource( const Reference< XComponentContext >& _rxORB ) :m_pImpl(new ODataSourceImpl(_rxORB)) { } - ODataSource::~ODataSource( ) { } diff --git a/extensions/source/abpilot/datasourcehandling.hxx b/extensions/source/abpilot/datasourcehandling.hxx index 65a4398c6846..928bbe00fb1c 100644 --- a/extensions/source/abpilot/datasourcehandling.hxx +++ b/extensions/source/abpilot/datasourcehandling.hxx @@ -113,9 +113,11 @@ namespace abp /// dtor ~ODataSource( ); - /// assignment + /// copy assignment ODataSource& operator=( const ODataSource& _rSource ); + /// move assignment + ODataSource& operator=( ODataSource&& _rSource ); /// checks whether or not the object represents a valid data source bool isValid() const; |