From 257571f35f86536dfeccf4b231c58c2f5dacaf65 Mon Sep 17 00:00:00 2001 From: dgelessus Date: Thu, 22 Feb 2024 01:21:15 +0100 Subject: [PATCH] Make a few more getters const Co-authored-by: Adam Johnson --- Sources/Plasma/FeatureLib/pfDXPipeline/plDXEnumerate.h | 2 +- Sources/Plasma/NucleusLib/inc/plProfile.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Plasma/FeatureLib/pfDXPipeline/plDXEnumerate.h b/Sources/Plasma/FeatureLib/pfDXPipeline/plDXEnumerate.h index b34cf24b8b..3e15d771bf 100644 --- a/Sources/Plasma/FeatureLib/pfDXPipeline/plDXEnumerate.h +++ b/Sources/Plasma/FeatureLib/pfDXPipeline/plDXEnumerate.h @@ -176,7 +176,7 @@ class hsGDirect3DTnLEnumerate void SetCurrentRenderer(D3DEnum_RendererInfo* d) { hsAssert(GetCurrentDisplay(), "Set Display first"); GetCurrentDisplay()->fCurrentRenderer = d; } void SetCurrentMode(D3DEnum_ModeInfo* m) { hsAssert(GetCurrentDisplay(), "Set Display first"); GetCurrentDisplay()->fCurrentMode = m; } - ST::string GetEnumeErrorStr() { return fEnumeErrorStr; } + ST::string GetEnumeErrorStr() const { return fEnumeErrorStr; } }; diff --git a/Sources/Plasma/NucleusLib/inc/plProfile.h b/Sources/Plasma/NucleusLib/inc/plProfile.h index 3d34e99478..5dfdfe51f3 100644 --- a/Sources/Plasma/NucleusLib/inc/plProfile.h +++ b/Sources/Plasma/NucleusLib/inc/plProfile.h @@ -189,7 +189,7 @@ class plProfileBase uint32_t GetTimerSamples() const { return fTimerSamples; } - ST::string GetName() { return fName; } + ST::string GetName() const { return fName; } void SetActive(bool s) { fActive = s; } @@ -243,7 +243,7 @@ class plProfileVar : public plProfileBase void BeginLap(const ST::string& lapName) { if (fActive && fRunning) IBeginLap(lapName); } void EndLap(const ST::string& lapName) { if (fActive && fRunning) IEndLap(lapName); } - ST::string GetGroup() { return fGroup; } + ST::string GetGroup() const { return fGroup; } plProfileLaps* GetLaps() { return fLaps; }