summaryrefslogtreecommitdiffstats
path: root/src/sql/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql/kernel')
-rw-r--r--src/sql/kernel/qsqlerror.h2
-rw-r--r--src/sql/kernel/qsqlquery.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/sql/kernel/qsqlerror.h b/src/sql/kernel/qsqlerror.h
index a956a54f7b..8c1be600aa 100644
--- a/src/sql/kernel/qsqlerror.h
+++ b/src/sql/kernel/qsqlerror.h
@@ -70,7 +70,7 @@ public:
bool operator!=(const QSqlError& other) const;
~QSqlError();
- void swap(QSqlError &other) noexcept { qSwap(d, other.d); }
+ void swap(QSqlError &other) noexcept { qt_ptr_swap(d, other.d); }
QString driverText() const;
QString databaseText() const;
diff --git a/src/sql/kernel/qsqlquery.h b/src/sql/kernel/qsqlquery.h
index b34452c302..132bc41396 100644
--- a/src/sql/kernel/qsqlquery.h
+++ b/src/sql/kernel/qsqlquery.h
@@ -80,9 +80,7 @@ public:
~QSqlQuery();
void swap(QSqlQuery &other) noexcept
- {
- qSwap(d, other.d);
- }
+ { qt_ptr_swap(d, other.d); }
bool isValid() const;
bool isActive() const;