coverity#1371190 Missing move assignment operator
Change-Id: I20991a31a82ff96292cdd1be4fd2c4779f9f5514
This commit is contained in:
@@ -328,7 +328,6 @@ namespace abp
|
|||||||
*this = _rSource;
|
*this = _rSource;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ODataSource& ODataSource::operator=( const ODataSource& _rSource )
|
ODataSource& ODataSource::operator=( const ODataSource& _rSource )
|
||||||
{
|
{
|
||||||
if( this != &_rSource )
|
if( this != &_rSource )
|
||||||
@@ -338,13 +337,17 @@ namespace abp
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ODataSource& ODataSource::operator=( ODataSource&& _rSource )
|
||||||
|
{
|
||||||
|
m_pImpl = std::move(_rSource.m_pImpl);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
ODataSource::ODataSource( const Reference< XComponentContext >& _rxORB )
|
ODataSource::ODataSource( const Reference< XComponentContext >& _rxORB )
|
||||||
:m_pImpl(new ODataSourceImpl(_rxORB))
|
:m_pImpl(new ODataSourceImpl(_rxORB))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ODataSource::~ODataSource( )
|
ODataSource::~ODataSource( )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@@ -113,9 +113,11 @@ namespace abp
|
|||||||
/// dtor
|
/// dtor
|
||||||
~ODataSource( );
|
~ODataSource( );
|
||||||
|
|
||||||
/// assignment
|
/// copy assignment
|
||||||
ODataSource& operator=( const ODataSource& _rSource );
|
ODataSource& operator=( const ODataSource& _rSource );
|
||||||
|
|
||||||
|
/// move assignment
|
||||||
|
ODataSource& operator=( ODataSource&& _rSource );
|
||||||
|
|
||||||
/// checks whether or not the object represents a valid data source
|
/// checks whether or not the object represents a valid data source
|
||||||
bool isValid() const;
|
bool isValid() const;
|
||||||
|
Reference in New Issue
Block a user