Commit b1e5153e authored by Jeffrey Oliver's avatar Jeffrey Oliver
Browse files

Should be a const ptr.

parent dbfbfcc8
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include <QSettings> #include <QSettings>
#include <QCryptographicHash> #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), : QDialog(parent),
allGameTypes(_allGameTypes), allGameTypes(_allGameTypes),
gamesProxyModel(_gamesProxyModel) gamesProxyModel(_gamesProxyModel)
......
...@@ -23,7 +23,7 @@ private: ...@@ -23,7 +23,7 @@ private:
const QMap<int, QString> &allGameTypes; const QMap<int, QString> &allGameTypes;
// This needs a const someplace // This needs a const someplace
GamesProxyModel *gamesProxyModel; const GamesProxyModel *gamesProxyModel;
/* /*
* The game type might contain special characters, so to use it in * The game type might contain special characters, so to use it in
...@@ -33,7 +33,7 @@ private: ...@@ -33,7 +33,7 @@ private:
private slots: private slots:
void actOk(); void actOk();
public: 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; bool getUnavailableGamesVisible() const;
void setUnavailableGamesVisible(bool _unavailableGamesVisible); void setUnavailableGamesVisible(bool _unavailableGamesVisible);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment