From 705461229ce83c1d1c4b8b84c8668a2a5b7dde02 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 10 Sep 2014 15:06:38 +0100 Subject: [PATCH] Misc --- 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 index b1a13520..bde4e7be 100644 --- 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); }