From 576816105237b4d25b511ad86b730760cc400ce5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 9 Jul 2015 07:24:30 -0400 Subject: [PATCH] Core: Pass string by const reference in SaveScreenShot --- Source/Core/Core/Core.cpp | 2 +- Source/Core/Core/Core.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp index c7a1ba9914..74920e99a6 100644 --- a/Source/Core/Core/Core.cpp +++ b/Source/Core/Core/Core.cpp @@ -678,7 +678,7 @@ void SaveScreenShot() SetState(CORE_RUN); } -void SaveScreenShot(const std::string name) +void SaveScreenShot(const std::string& name) { const bool bPaused = (GetState() == CORE_PAUSE); diff --git a/Source/Core/Core/Core.h b/Source/Core/Core/Core.h index dafa35d5f3..11d4fa2e98 100644 --- a/Source/Core/Core/Core.h +++ b/Source/Core/Core/Core.h @@ -52,7 +52,7 @@ void SetState(EState _State); EState GetState(); void SaveScreenShot(); -void SaveScreenShot(std::string name); +void SaveScreenShot(const std::string& name); void Callback_WiimoteInterruptChannel(int _number, u16 _channelID, const void* _pData, u32 _Size);