diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2024-12-31 10:03:41 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2025-01-02 06:51:03 +0000 |
| commit | e0e9a5627376e04aba1b2ca2591554851d7de240 (patch) | |
| tree | 951585a4e56e415b659913beb892e79865607e5b /examples/sql/sqlbrowser/qsqlconnectiondialog.h | |
| parent | 0da2c2c4ef2219967db87021eece2a60b6e207af (diff) | |
sqlbrowser example: use explicit / override
Examples should show idiomatic use of Qt and C++, so mark the custom
widget constructors in this example as explicit and their destructors
are override.
Amends 2690822428deec4f0c08f4d118d69a7c6036369e, which, however,
inherited the missing explicit from older code.
Pick-to: 6.9 6.8
Change-Id: I5b5b49f69330c6f139345bed7264c85a36c36e9b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/sql/sqlbrowser/qsqlconnectiondialog.h')
| -rw-r--r-- | examples/sql/sqlbrowser/qsqlconnectiondialog.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sql/sqlbrowser/qsqlconnectiondialog.h b/examples/sql/sqlbrowser/qsqlconnectiondialog.h index 70dec9e9a86..1ea1ae4a927 100644 --- a/examples/sql/sqlbrowser/qsqlconnectiondialog.h +++ b/examples/sql/sqlbrowser/qsqlconnectiondialog.h @@ -19,8 +19,8 @@ class QSqlConnectionDialog : public QDialog { Q_OBJECT public: - QSqlConnectionDialog(QWidget *parent = nullptr); - ~QSqlConnectionDialog(); + explicit QSqlConnectionDialog(QWidget *parent = nullptr); + ~QSqlConnectionDialog() override; QString driverName() const; QString databaseName() const; |
