diff options
| author | 2018-07-18 00:04:33 -0400 | |
|---|---|---|
| committer | 2018-07-18 00:07:47 -0400 | |
| commit | f4c69149f995bb408d7e059e3ba2ade3fa81cc09 (patch) | |
| tree | 91e7a3f8bd207c49f0e2dcaeb1551319c1009b53 /src | |
| parent | Merge pull request #675 from Subv/stencil (diff) | |
| download | yuzu-f4c69149f995bb408d7e059e3ba2ade3fa81cc09.tar.gz yuzu-f4c69149f995bb408d7e059e3ba2ade3fa81cc09.tar.xz yuzu-f4c69149f995bb408d7e059e3ba2ade3fa81cc09.zip | |
game_list: Remove unnecessary QString initialization in KeyReleaseEater
QString initializes to an empty string by default, so this does nothing
meaningful. While we're at it, use a constructor initializer list for
initializing the gamelist member variable.
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/game_list.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index 5a708dc73..0132a050d 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp | |||
| @@ -17,10 +17,7 @@ | |||
| 17 | #include "game_list_p.h" | 17 | #include "game_list_p.h" |
| 18 | #include "ui_settings.h" | 18 | #include "ui_settings.h" |
| 19 | 19 | ||
| 20 | GameList::SearchField::KeyReleaseEater::KeyReleaseEater(GameList* gamelist) { | 20 | GameList::SearchField::KeyReleaseEater::KeyReleaseEater(GameList* gamelist) : gamelist{gamelist} {} |
| 21 | this->gamelist = gamelist; | ||
| 22 | edit_filter_text_old = ""; | ||
| 23 | } | ||
| 24 | 21 | ||
| 25 | // EventFilter in order to process systemkeys while editing the searchfield | 22 | // EventFilter in order to process systemkeys while editing the searchfield |
| 26 | bool GameList::SearchField::KeyReleaseEater::eventFilter(QObject* obj, QEvent* event) { | 23 | bool GameList::SearchField::KeyReleaseEater::eventFilter(QObject* obj, QEvent* event) { |