summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-28 09:44:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-28 10:09:32 +0100
commit807151aa13ce788adc2cd3b452ceec9177430304 (patch)
treed8688557136270e52279bfa48a32ec321712bb47 /connectivity
parent5aa43c380a14869c03525396757debbddb602b44 (diff)
coverity#1371275 Missing move assignment operator
Change-Id: I6c47c797d2654506bdc95c35b2558ce812f4070d
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/dbmetadata.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/connectivity/source/commontools/dbmetadata.cxx b/connectivity/source/commontools/dbmetadata.cxx
index 090d410da36e..bdb7f033debb 100644
--- a/connectivity/source/commontools/dbmetadata.cxx
+++ b/connectivity/source/commontools/dbmetadata.cxx
@@ -175,7 +175,6 @@ namespace dbtools
{
}
-
DatabaseMetaData::DatabaseMetaData( const Reference< XConnection >& _connection )
:m_pImpl( new DatabaseMetaData_Impl )
{
@@ -188,6 +187,10 @@ namespace dbtools
{
}
+ DatabaseMetaData::DatabaseMetaData( DatabaseMetaData&& _copyFrom )
+ :m_pImpl(std::move(_copyFrom.m_pImpl))
+ {
+ }
DatabaseMetaData& DatabaseMetaData::operator=( const DatabaseMetaData& _copyFrom )
{
@@ -198,12 +201,16 @@ namespace dbtools
return *this;
}
+ DatabaseMetaData& DatabaseMetaData::operator=( DatabaseMetaData&& _copyFrom )
+ {
+ m_pImpl = std::move(_copyFrom.m_pImpl);
+ return *this;
+ }
DatabaseMetaData::~DatabaseMetaData()
{
}
-
bool DatabaseMetaData::isConnected() const
{
return m_pImpl->xConnection.is();