summaryrefslogtreecommitdiffhomepage
path: root/compat/borrowed-ptr.inl
diff options
context:
space:
mode:
Diffstat (limited to 'compat/borrowed-ptr.inl')
-rw-r--r--compat/borrowed-ptr.inl4
1 files changed, 1 insertions, 3 deletions
diff --git a/compat/borrowed-ptr.inl b/compat/borrowed-ptr.inl
index c2a8b730..68a545d6 100644
--- a/compat/borrowed-ptr.inl
+++ b/compat/borrowed-ptr.inl
@@ -134,7 +134,6 @@ bptr<T>& bptr<T>::_copy_assign(const bptr<Y>& other) noexcept
{
if (blk != other.blk)
{
- CORRADE_ASSUME(this != &other); // todo see if helps
if (blk)
blk->decrement(blk);
blk = other.blk;
@@ -187,8 +186,7 @@ template<typename T> bool bptr<T>::operator==(const bptr<std::remove_const_t<T>>
template<typename T>
void bptr<T>::swap(bptr& other) noexcept
{
- using floormat::swap;
- swap(blk, other.blk);
+ floormat::swap(blk, other.blk);
}
template<typename T> uint32_t bptr<T>::use_count() const noexcept