瀏覽代碼

Merge pull request #1010 from lioncash/ref

citra-qt: Pass string by const reference
bunnei 11 年之前
父節點
當前提交
aee575b24d
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/citra_qt/main.cpp
  2. 1 1
      src/citra_qt/main.h

+ 1 - 1
src/citra_qt/main.cpp

@@ -207,7 +207,7 @@ void GMainWindow::OnDisplayTitleBars(bool show)
     }
     }
 }
 }
 
 
-void GMainWindow::BootGame(std::string filename) {
+void GMainWindow::BootGame(const std::string& filename) {
     LOG_INFO(Frontend, "Citra starting...\n");
     LOG_INFO(Frontend, "Citra starting...\n");
 
 
     // Initialize the core emulation
     // Initialize the core emulation

+ 1 - 1
src/citra_qt/main.h

@@ -55,7 +55,7 @@ signals:
     void EmulationStopping();
     void EmulationStopping();
 
 
 private:
 private:
-    void BootGame(std::string filename);
+    void BootGame(const std::string& filename);
     void ShutdownGame();
     void ShutdownGame();
 
 
     void closeEvent(QCloseEvent* event) override;
     void closeEvent(QCloseEvent* event) override;