Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Sep 10, 2014
1 parent a334496 commit 7054612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrho/extra/d_scopedpointer.hpp
Expand Up @@ -182,7 +182,7 @@ class ScopedPointer
{
// 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);
}
Expand Down

0 comments on commit 7054612

Please sign in to comment.