commit 705461229ce83c1d1c4b8b84c8668a2a5b7dde02 parent a3344964b2a0db059674ebdf67d6bf7adf9e768b Author: falkTX <falktx@gmail.com> Date: Wed, 10 Sep 2014 15:06:13 +0100 Misc Diffstat:
M | distrho/extra/d_scopedpointer.hpp | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/distrho/extra/d_scopedpointer.hpp b/distrho/extra/d_scopedpointer.hpp @@ -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); }