swap optimization

This commit is contained in:
Aleksandar Fabijanic
2007-10-27 18:53:32 +00:00
parent 5eb03ba814
commit 9ea88d25dd
6 changed files with 205 additions and 11 deletions

View File

@@ -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);
}