From f1ebfd78f6511618a01d6169d26712d0b255bcb4 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Tue, 26 May 2020 14:01:52 +0200 Subject: [PATCH] Mark several more borrowed_ptr functions as const. --- src/Memory/borrowed_ptr.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Memory/borrowed_ptr.hpp b/src/Memory/borrowed_ptr.hpp index 74f5e2c..eefdd70 100644 --- a/src/Memory/borrowed_ptr.hpp +++ b/src/Memory/borrowed_ptr.hpp @@ -22,8 +22,8 @@ public: return *this; } - inline T* operator->() noexcept { return _raw; } - inline T* GetRaw() noexcept { return _raw; } + inline T* operator->() const noexcept { return _raw; } + inline T* GetRaw() const noexcept { return _raw; } inline bool operator==(const borrowed_ptr& rhs) const { return _raw == rhs._raw; } inline bool operator!=(const borrowed_ptr& rhs) const { return _raw != rhs._raw; }