SqlQuery: Make `QSqlDatabase` parameter const reference
This commit is contained in:
parent
03ecde8b83
commit
9a480eb710
|
@ -31,7 +31,7 @@
|
||||||
class SqlQuery : public QSqlQuery {
|
class SqlQuery : public QSqlQuery {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit SqlQuery(QSqlDatabase db) : QSqlQuery(db) {}
|
explicit SqlQuery(const QSqlDatabase &db) : QSqlQuery(db) {}
|
||||||
|
|
||||||
void BindValue(const QString &placeholder, const QVariant &value);
|
void BindValue(const QString &placeholder, const QVariant &value);
|
||||||
bool Exec();
|
bool Exec();
|
||||||
|
|
Loading…
Reference in New Issue