Skip to content

Commit

Permalink
fix: do not use const in move constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 committed Feb 2, 2024
1 parent 0019c5a commit e27268a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/any.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ namespace jule
this->__get_copy(src);
}

Any(const jule::Any &&src) noexcept : data(src.data), type(src.type)
Any(jule::Any &&src) noexcept : data(src.data), type(src.type)
{
// Avoid deallocation.
src.data = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion api/ptr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ namespace jule
this->__get_copy(src);
}

Ptr(const jule::Ptr<T> &&src) noexcept
Ptr(jule::Ptr<T> &&src) noexcept
{
this->alloc = src.alloc;
this->ref = src.ref;
Expand Down
2 changes: 1 addition & 1 deletion api/slice.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ namespace jule
this->__get_copy(src);
}

Slice(const jule::Slice<Item> &&src) noexcept
Slice(jule::Slice<Item> &&src) noexcept
{
this->__get_copy(src);
}
Expand Down
2 changes: 1 addition & 1 deletion api/trait.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ namespace jule
this->__get_copy(src);
}

Trait(const jule::Trait<Mask> &&src) noexcept
Trait(jule::Trait<Mask> &&src) noexcept
{
this->__get_copy(src);
}
Expand Down

0 comments on commit e27268a

Please sign in to comment.