From f5cc056a9e5801b9ce59175c1a04a87308767fd1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 14 Mar 2020 21:28:43 -0400 Subject: [PATCH] CGameHintInfo: Take CVParamTransfer parameter by const reference Avoids trivial unnecessary copies. --- Runtime/CGameHintInfo.cpp | 2 +- Runtime/CGameHintInfo.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/CGameHintInfo.cpp b/Runtime/CGameHintInfo.cpp index 9544f593c..84df109db 100644 --- a/Runtime/CGameHintInfo.cpp +++ b/Runtime/CGameHintInfo.cpp @@ -39,7 +39,7 @@ int CGameHintInfo::FindHintIndex(const char* str) { return (it != gameHints.end() ? it - gameHints.begin() : -1); } -CFactoryFnReturn FHintFactory(const SObjectTag&, CInputStream& in, const CVParamTransfer, CObjectReference*) { +CFactoryFnReturn FHintFactory(const SObjectTag&, CInputStream& in, const CVParamTransfer&, CObjectReference*) { in.readUint32Big(); s32 version = in.readInt32Big(); diff --git a/Runtime/CGameHintInfo.hpp b/Runtime/CGameHintInfo.hpp index 7b0e75ee3..0628008ad 100644 --- a/Runtime/CGameHintInfo.hpp +++ b/Runtime/CGameHintInfo.hpp @@ -45,5 +45,5 @@ public: static int FindHintIndex(const char* str); }; -CFactoryFnReturn FHintFactory(const SObjectTag&, CInputStream&, const CVParamTransfer, CObjectReference*); +CFactoryFnReturn FHintFactory(const SObjectTag&, CInputStream&, const CVParamTransfer&, CObjectReference*); } // namespace urde