From e0e9a5627376e04aba1b2ca2591554851d7de240 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 31 Dec 2024 10:03:41 +0100 Subject: 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 --- examples/sql/sqlbrowser/qsqlconnectiondialog.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/sql/sqlbrowser/qsqlconnectiondialog.h') 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; -- cgit v1.2.3