From 97a6b8b5ccd6aa1ce561f030e89583229f47ae66 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 19 Jun 2023 01:19:47 +0200 Subject: [PATCH] Make CCrashHandler getters/setters inline These could be just inline. --- r5dev/public/tier0/crashhandler.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/r5dev/public/tier0/crashhandler.h b/r5dev/public/tier0/crashhandler.h index c968542a..c331d629 100644 --- a/r5dev/public/tier0/crashhandler.h +++ b/r5dev/public/tier0/crashhandler.h @@ -22,14 +22,14 @@ public: void Start(); void End(); - void Lock() const { m_Mutex.lock(); }; - void Unlock() const { m_Mutex.unlock(); }; + inline void Lock() const { m_Mutex.lock(); }; + inline void Unlock() const { m_Mutex.unlock(); }; - void SetState(bool bState) { m_bCallState = bState; }; - bool GetState() const { return m_bCallState; }; + inline void SetState(bool bState) { m_bCallState = bState; }; + inline bool GetState() const { return m_bCallState; }; - bool IsValid() const { return m_hExceptionHandler != nullptr; }; - bool Handled() const { return m_bExceptionHandled; }; + inline bool IsValid() const { return m_hExceptionHandler != nullptr; }; + inline bool Handled() const { return m_bExceptionHandled; }; //------------------------------------------------------------------------- // Formatters: