Skip to content

Commit

Permalink
Revert "style: use pointer to const (#98)"
Browse files Browse the repository at this point in the history
This reverts commit 866f926.
  • Loading branch information
mertcandav authored Feb 27, 2024
1 parent 866f926 commit ccf9c9e
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, const jule::Uint *ref) noexcept
static jule::Ptr<T> make(T *ptr, 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, const jule::Uint *ref) noexcept
static jule::Ptr<T> make(const T &instance, jule::Uint *ref) noexcept
{
jule::Ptr<T> buffer;

Expand Down

0 comments on commit ccf9c9e

Please sign in to comment.