mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8
This commit is contained in:
@@ -69,6 +69,17 @@ RecordSet::RecordSet(const RecordSet& other):
|
||||
}
|
||||
|
||||
|
||||
RecordSet::RecordSet(RecordSet&& other) noexcept:
|
||||
Statement(std::move(other)),
|
||||
_currentRow(std::move(other._currentRow)),
|
||||
_pBegin(std::move(other._pBegin)),
|
||||
_pEnd(std::move(other._pEnd)),
|
||||
_pFilter(std::move(other._pFilter)),
|
||||
_totalRowCount(std::move(other._totalRowCount))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
RecordSet::~RecordSet()
|
||||
{
|
||||
try
|
||||
@@ -87,6 +98,19 @@ RecordSet::~RecordSet()
|
||||
}
|
||||
|
||||
|
||||
RecordSet& RecordSet::operator = (RecordSet&& other) noexcept
|
||||
{
|
||||
Statement::operator = (std::move(other));
|
||||
_currentRow = std::move(other._currentRow);
|
||||
_pBegin = std::move(other._pBegin);
|
||||
_pEnd = std::move(other._pEnd);
|
||||
_pFilter = std::move(other._pFilter);
|
||||
_totalRowCount = std::move(other._totalRowCount);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
void RecordSet::reset(const Statement& stmt)
|
||||
{
|
||||
delete _pBegin;
|
||||
|
||||
Reference in New Issue
Block a user