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:
Vladislav Tronko
2016-12-29 20:33:13 +02:00
parent 5697e475b5
commit 210916cfeb
13 changed files with 72 additions and 72 deletions

View File

@@ -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;