mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
swap optimization
This commit is contained in:
@@ -87,10 +87,12 @@ Statement& Statement::operator = (const Statement& stmt)
|
||||
|
||||
void Statement::swap(Statement& other)
|
||||
{
|
||||
std::swap(_ptr, other._ptr);
|
||||
std::swap(_async, other._async);
|
||||
std::swap(_pAsyncExec, other._pAsyncExec);
|
||||
std::swap(_pResult, other._pResult);
|
||||
using std::swap;
|
||||
|
||||
swap(_ptr, other._ptr);
|
||||
swap(_async, other._async);
|
||||
swap(_pAsyncExec, other._pAsyncExec);
|
||||
swap(_pResult, other._pResult);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user