Skip to content
Permalink
Browse files

FifoPlayer: Use std::move for saving callbacks

  • Loading branch information...
phire committed Sep 8, 2019
1 parent 46f4f69 commit 677a0903a1eb3cd2f42bb206ad4e041ee9ce3df0
Showing with 2 additions and 2 deletions.
  1. +1 −1 Source/Core/Core/FifoPlayer/FifoPlayer.cpp
  2. +1 −1 Source/Core/Core/FifoPlayer/FifoPlayer.h
@@ -170,7 +170,7 @@ std::unique_ptr<CPUCoreBase> FifoPlayer::GetCPUCore()

void FifoPlayer::SetFileLoadedCallback(CallbackFunc callback)
{
m_FileLoadedCb = callback;
m_FileLoadedCb = std::move(callback);

// Trigger the callback immediatly if the file is already loaded.
if (GetFile() != nullptr)
@@ -94,7 +94,7 @@ class FifoPlayer
void SetEarlyMemoryUpdates(bool enabled) { m_EarlyMemoryUpdates = enabled; }
// Callbacks
void SetFileLoadedCallback(CallbackFunc callback);
void SetFrameWrittenCallback(CallbackFunc callback) { m_FrameWrittenCb = callback; }
void SetFrameWrittenCallback(CallbackFunc callback) { m_FrameWrittenCb = std::move(callback); }
static FifoPlayer& GetInstance();

bool IsRunningWithFakeVideoInterfaceUpdates() const;

0 comments on commit 677a090

Please sign in to comment.
You can’t perform that action at this time.