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:
parent
c2f058df80
commit
4b7043b0cd
3 changed files with 30 additions and 23 deletions
|
|
@ -118,8 +118,7 @@ public:
|
|||
{
|
||||
removeSubContentsList();
|
||||
|
||||
OptionalScopedPointer<DirectoryContentsList> newPointer (newList, canDeleteList);
|
||||
subContentsList = newPointer;
|
||||
subContentsList = OptionalScopedPointer<DirectoryContentsList> (newList, canDeleteList);
|
||||
newList->addChangeListener (this);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue