Browse Source

Misc

gh-pages
falkTX 10 years ago
parent
commit
705461229c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      distrho/extra/d_scopedpointer.hpp

+ 1
- 1
distrho/extra/d_scopedpointer.hpp View File

@@ -182,7 +182,7 @@ public:
{
// Two ScopedPointers should never be able to refer to the same object - if
// this happens, you must have done something dodgy!
DISTRHO_SAFE_ASSERT_RETURN(object != other.object && this != other.getAddress(),);
DISTRHO_SAFE_ASSERT_RETURN(object != other.object || this == other.getAddress() || object == nullptr,);

std::swap(object, other.object);
}


Loading…
Cancel
Save