coverity#1371267 Missing move assignment operator
Change-Id: Iefcfd20ac17f24f4fc3faec72b15de6bfb42eeac
This commit is contained in:
@@ -865,6 +865,17 @@ ONDXPagePtr& ONDXPagePtr::operator=(ONDXPagePtr const & rOther)
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ONDXPagePtr& ONDXPagePtr::operator=(ONDXPagePtr && rOther)
|
||||||
|
{
|
||||||
|
if (mpPage != nullptr) {
|
||||||
|
mpPage->ReleaseRef();
|
||||||
|
}
|
||||||
|
mpPage = rOther.mpPage;
|
||||||
|
nPagePos = rOther.nPagePos;
|
||||||
|
rOther.mpPage = nullptr;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
static sal_uInt32 nValue;
|
static sal_uInt32 nValue;
|
||||||
|
|
||||||
SvStream& connectivity::dbase::operator >> (SvStream &rStream, ONDXPage& rPage)
|
SvStream& connectivity::dbase::operator >> (SvStream &rStream, ONDXPage& rPage)
|
||||||
|
@@ -97,6 +97,7 @@ namespace connectivity
|
|||||||
~ONDXPagePtr();
|
~ONDXPagePtr();
|
||||||
void Clear();
|
void Clear();
|
||||||
ONDXPagePtr& operator=(ONDXPagePtr const & rRef);
|
ONDXPagePtr& operator=(ONDXPagePtr const & rRef);
|
||||||
|
ONDXPagePtr& operator=(ONDXPagePtr && rRef);
|
||||||
bool Is() const { return mpPage != nullptr; }
|
bool Is() const { return mpPage != nullptr; }
|
||||||
|
|
||||||
ONDXPage * operator ->() const { assert(mpPage != nullptr); return mpPage; }
|
ONDXPage * operator ->() const { assert(mpPage != nullptr); return mpPage; }
|
||||||
|
Reference in New Issue
Block a user