Bunch of raw pointers replaced with smart pointers of references.
This commit is contained in:
parent
5a199c9138
commit
ea035f58c8
20 changed files with 67 additions and 79 deletions
|
|
@ -1,9 +1,10 @@
|
|||
#ifndef OPENDATABASE_H
|
||||
#ifndef OPENDATABASE_H
|
||||
#define OPENDATABASE_H
|
||||
|
||||
#include <QObject>
|
||||
#include "ConnectionConfig.h"
|
||||
#include "Expected.h"
|
||||
#include <memory>
|
||||
|
||||
class PgDatabaseCatalogue;
|
||||
class TypeSelectionItemModel;
|
||||
|
|
@ -21,7 +22,7 @@ public:
|
|||
OpenDatabase& operator=(const OpenDatabase &) = delete;
|
||||
~OpenDatabase();
|
||||
|
||||
PgDatabaseCatalogue* catalogue();
|
||||
std::shared_ptr<PgDatabaseCatalogue> catalogue();
|
||||
TypeSelectionItemModel* typeSelectionModel();
|
||||
signals:
|
||||
|
||||
|
|
@ -29,7 +30,7 @@ public slots:
|
|||
|
||||
private:
|
||||
ConnectionConfig m_config;
|
||||
PgDatabaseCatalogue *m_catalogue;
|
||||
std::shared_ptr<PgDatabaseCatalogue> m_catalogue;
|
||||
|
||||
TypeSelectionItemModel *m_typeSelectionModel = nullptr;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue