Просмотр исходного кода

Merge pull request #679 from lioncash/ctor

game_list: Remove unnecessary QString initialization in KeyReleaseEater
bunnei 8 лет назад
Родитель
Сommit
24a55bba42
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      src/yuzu/game_list.cpp

+ 1 - 4
src/yuzu/game_list.cpp

@@ -17,10 +17,7 @@
 #include "game_list_p.h"
 #include "ui_settings.h"
 
-GameList::SearchField::KeyReleaseEater::KeyReleaseEater(GameList* gamelist) {
-    this->gamelist = gamelist;
-    edit_filter_text_old = "";
-}
+GameList::SearchField::KeyReleaseEater::KeyReleaseEater(GameList* gamelist) : gamelist{gamelist} {}
 
 // EventFilter in order to process systemkeys while editing the searchfield
 bool GameList::SearchField::KeyReleaseEater::eventFilter(QObject* obj, QEvent* event) {