Skip to content

Commit

Permalink
QtSql: fix GCC -Wextra-semi warnings after member function definitions
Browse files Browse the repository at this point in the history
Pick-to: 6.9 6.8
Change-Id: I5b65f543d7a36386181e493d8b9ce0267132d686
Reviewed-by: Giuseppe D'Angelo <[email protected]>
  • Loading branch information
ahmadsamir committed Dec 12, 2024
1 parent 8d3601d commit 291c762
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sql/kernel/qsqlfield.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Q_SQL_EXPORT QSqlField
: QSqlField(fieldName, QMetaType(type), tableName)
{}
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")
void setType(QVariant::Type type) { setMetaType(QMetaType(int(type))); }
QT_WARNING_POP
Expand Down
2 changes: 1 addition & 1 deletion src/sql/kernel/qsqlindex.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Q_SQL_EXPORT QSqlIndex : public QSqlRecord
cursor.swap(other.cursor);
nm.swap(other.nm);
sorts.swap(other.sorts);
};
}

void setCursorName(const QString &cursorName);
inline QString cursorName() const { return cursor; }
Expand Down

0 comments on commit 291c762

Please sign in to comment.