1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

OptionalScopedPointer: Added proper move semantics and convenience constructors

This commit is contained in:
reuk 2020-02-20 15:55:49 +00:00 committed by Tom Poole
parent c2f058df80
commit 4b7043b0cd
3 changed files with 30 additions and 23 deletions

View file

@ -118,8 +118,7 @@ public:
{
removeSubContentsList();
OptionalScopedPointer<DirectoryContentsList> newPointer (newList, canDeleteList);
subContentsList = newPointer;
subContentsList = OptionalScopedPointer<DirectoryContentsList> (newList, canDeleteList);
newList->addChangeListener (this);
}