Should be a const ptr.
This commit is contained in:
parent
dbfbfcc837
commit
b1e5153ea5
2 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@
|
|||
#include <QSettings>
|
||||
#include <QCryptographicHash>
|
||||
|
||||
DlgFilterGames::DlgFilterGames(const QMap<int, QString> &_allGameTypes, GamesProxyModel *_gamesProxyModel, QWidget *parent)
|
||||
DlgFilterGames::DlgFilterGames(const QMap<int, QString> &_allGameTypes, const GamesProxyModel *_gamesProxyModel, QWidget *parent)
|
||||
: QDialog(parent),
|
||||
allGameTypes(_allGameTypes),
|
||||
gamesProxyModel(_gamesProxyModel)
|
||||
|
|
|
@ -23,7 +23,7 @@ private:
|
|||
|
||||
const QMap<int, QString> &allGameTypes;
|
||||
// This needs a const someplace
|
||||
GamesProxyModel *gamesProxyModel;
|
||||
const GamesProxyModel *gamesProxyModel;
|
||||
|
||||
/*
|
||||
* The game type might contain special characters, so to use it in
|
||||
|
@ -33,7 +33,7 @@ private:
|
|||
private slots:
|
||||
void actOk();
|
||||
public:
|
||||
DlgFilterGames(const QMap<int, QString> &_allGameTypes, GamesProxyModel *_gamesProxyModel, QWidget *parent = 0);
|
||||
DlgFilterGames(const QMap<int, QString> &_allGameTypes, const GamesProxyModel *_gamesProxyModel, QWidget *parent = 0);
|
||||
|
||||
bool getUnavailableGamesVisible() const;
|
||||
void setUnavailableGamesVisible(bool _unavailableGamesVisible);
|
||||
|
|
Loading…
Reference in a new issue