Browse Source

Do not assert in ScopedPointer::reset if you are resetting to a nullptr

tags/2021-05-28
hogliux 7 years ago
parent
commit
4ecd7eb8e8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_core/memory/juce_ScopedPointer.h

+ 1
- 1
modules/juce_core/memory/juce_ScopedPointer.h View File

@@ -166,7 +166,7 @@ public:
{
// You're trying to reset this ScopedPointer to itself! This will work here as ScopedPointer does an equality check
// but be aware that std::unique_ptr won't do this and you could end up with some nasty, subtle bugs!
jassertfalse;
jassert (newObject == nullptr);
}
}


Loading…
Cancel
Save