From 866f926290979c931c33e36ea6fab15e6f122569 Mon Sep 17 00:00:00 2001 From: Piotr Idzik <65706193+vil02@users.noreply.github.com> Date: Tue, 27 Feb 2024 22:50:50 +0100 Subject: [PATCH] style: use pointer to `const` (#98) --- api/ptr.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/ptr.hpp b/api/ptr.hpp index 9e80b2d5c..588c351a7 100644 --- a/api/ptr.hpp +++ b/api/ptr.hpp @@ -43,7 +43,7 @@ namespace jule // Creates new reference from allocation and reference counting // allocation. Reference does not counted if reference count // allocation is null. - static jule::Ptr make(T *ptr, jule::Uint *ref) noexcept + static jule::Ptr make(T *ptr, const jule::Uint *ref) noexcept { jule::Ptr buffer; buffer.alloc = ptr; @@ -71,7 +71,7 @@ namespace jule return buffer; } - static jule::Ptr make(const T &instance, jule::Uint *ref) noexcept + static jule::Ptr make(const T &instance, const jule::Uint *ref) noexcept { jule::Ptr buffer;