mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-02-06 19:48:28 -06:00
Use references instead of pointers where it's possible
In our case DDBrowserDB shares lifetime scope with MainWindow, so there's no need to pass pointers back and forth.
This commit is contained in:
@@ -20,7 +20,7 @@ public:
|
||||
ExportFormatJson,
|
||||
};
|
||||
|
||||
explicit ExportDataDialog(DBBrowserDB* db, ExportFormats format, QWidget* parent = 0, const QString& query = "", const QString& selection = "");
|
||||
explicit ExportDataDialog(DBBrowserDB& db, ExportFormats format, QWidget* parent = 0, const QString& query = "", const QString& selection = "");
|
||||
~ExportDataDialog();
|
||||
|
||||
private slots:
|
||||
@@ -43,7 +43,7 @@ private:
|
||||
|
||||
private:
|
||||
Ui::ExportDataDialog* ui;
|
||||
DBBrowserDB* pdb;
|
||||
DBBrowserDB& pdb;
|
||||
|
||||
ExportFormats m_format;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user