QtSql: fix GCC -Wextra-semi warnings after member function definitions

Change-Id: I5b65f543d7a36386181e493d8b9ce0267132d686
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
(cherry picked from commit 291c762802a2f5e1edb6bd9a842663ca5689323a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 149150ab47eb4e5924158e8e47aa71f3d6300c79)
This commit is contained in:
Ahmad Samir 2024-12-12 01:30:31 +02:00 committed by Qt Cherry-pick Bot
parent 3d68f8eafa
commit 209593aeba
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ public:
: QSqlField(fieldName, QMetaType(type), tableName) : QSqlField(fieldName, QMetaType(type), tableName)
{} {}
QT_DEPRECATED_VERSION_X_6_0("Use metaType() instead") QT_DEPRECATED_VERSION_X_6_0("Use metaType() instead")
QVariant::Type type() const { return QVariant::Type(metaType().id()); }; QVariant::Type type() const { return QVariant::Type(metaType().id()); }
QT_DEPRECATED_VERSION_X_6_0("Use setMetaType() instead") QT_DEPRECATED_VERSION_X_6_0("Use setMetaType() instead")
void setType(QVariant::Type type) { setMetaType(QMetaType(int(type))); } void setType(QVariant::Type type) { setMetaType(QMetaType(int(type))); }
QT_WARNING_POP QT_WARNING_POP

View File

@ -33,7 +33,7 @@ public:
cursor.swap(other.cursor); cursor.swap(other.cursor);
nm.swap(other.nm); nm.swap(other.nm);
sorts.swap(other.sorts); sorts.swap(other.sorts);
}; }
void setCursorName(const QString &cursorName); void setCursorName(const QString &cursorName);
inline QString cursorName() const { return cursor; } inline QString cursorName() const { return cursor; }