Przeglądaj źródła

qt/game_list_p: Remove redundant base class constructor invocations

These occur automatically without the need to call them. While we're at
it, also std::move the QString instance into its member variable.
Lioncash 8 lat temu
rodzic
commit
9764b4ec0e
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/yuzu/game_list_p.h

+ 2 - 1
src/yuzu/game_list_p.h

@@ -5,6 +5,7 @@
 #pragma once
 
 #include <atomic>
+#include <utility>
 #include <QImage>
 #include <QRunnable>
 #include <QStandardItem>
@@ -109,7 +110,7 @@ class GameListWorker : public QObject, public QRunnable {
 
 public:
     GameListWorker(QString dir_path, bool deep_scan)
-        : QObject(), QRunnable(), dir_path(dir_path), deep_scan(deep_scan) {}
+        : dir_path(std::move(dir_path)), deep_scan(deep_scan) {}
 
 public slots:
     /// Starts the processing of directory tree information.