diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-09 11:11:07 +0100 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-16 09:28:01 +0100 |
| commit | 6fd301b231ea571860e308236c83de01c7d4985d (patch) | |
| tree | 42a0108ddf25071d7cb9b8e8ecefb08f93b5abf0 /src/plugins/sqldrivers/mysql/qsql_mysql.cpp | |
| parent | 021a8ce5f767d2fdeb72cebc6d6e8bb08b87f24d (diff) | |
Make QEventPoint an idiomatic value type
Use atomic ref counting and make type movable.
Make a moved-from QEventPoint valid but undefined. Given that the
d pointer is anyway loaded into the register, the additional check
doesn't cost much, and makes the class more compliant with our
guide for value types in Qt.
Add a free swap overload via Q_DECLARED_SHARED, which also declares
the type as movable.
As a drive-by, remove superfluous inline.
This also silences some static analyser warnings.
Change-Id: I7c4a436fce44556aa37026ac26dc2061e1f01de9
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers/mysql/qsql_mysql.cpp')
0 files changed, 0 insertions, 0 deletions
