summaryrefslogtreecommitdiffstats
path: root/src/sql/models/qsqlrelationaltablemodel.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-03-15 21:20:46 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-03-17 07:15:06 +0100
commit60592f72d61366922771b90bed95b596e05a1545 (patch)
treee72433d7fe149349ab2bea65d17d32b6ad990856 /src/sql/models/qsqlrelationaltablemodel.h
parentf438d29b6fdfff0680b09e88590ee47b22877776 (diff)
Rest of QtBase: compile-optimize inline swap functions
Instead of using the overly-generic qSwap() monster, use - qt_ptr_swap() for swapping raw pointers - member-swap for swapping smart pointers and owning containers In QtCore, this has proven to give a nice reduction in compile time for Qt users, cf. b1b0c2970e480ef460a61f37fa430dc443390358. Pick-to: 6.3 6.2 Task-number: QTBUG-97601 Change-Id: I53e031a021031d53a74a712cd0f5e6bb8bf800bd Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/sql/models/qsqlrelationaltablemodel.h')
-rw-r--r--src/sql/models/qsqlrelationaltablemodel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sql/models/qsqlrelationaltablemodel.h b/src/sql/models/qsqlrelationaltablemodel.h
index f9e3620eb6..8a37e8439a 100644
--- a/src/sql/models/qsqlrelationaltablemodel.h
+++ b/src/sql/models/qsqlrelationaltablemodel.h
@@ -60,9 +60,9 @@ public:
void swap(QSqlRelation &other) noexcept
{
- qSwap(tName, other.tName);
- qSwap(iColumn, other.iColumn);
- qSwap(dColumn, other.dColumn);
+ tName.swap(other.tName);
+ iColumn.swap(other.iColumn);
+ dColumn.swap(other.dColumn);
}
inline QString tableName() const