Skip to content

Commit

Permalink
style: use pointer to const (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 authored Feb 27, 2024
1 parent a2520b1 commit 866f926
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/ptr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> make(T *ptr, jule::Uint *ref) noexcept
static jule::Ptr<T> make(T *ptr, const jule::Uint *ref) noexcept
{
jule::Ptr<T> buffer;
buffer.alloc = ptr;
Expand Down Expand Up @@ -71,7 +71,7 @@ namespace jule
return buffer;
}

static jule::Ptr<T> make(const T &instance, jule::Uint *ref) noexcept
static jule::Ptr<T> make(const T &instance, const jule::Uint *ref) noexcept
{
jule::Ptr<T> buffer;

Expand Down

0 comments on commit 866f926

Please sign in to comment.