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

Another batch of ScopedPointer cleanups

This commit is contained in:
jules 2018-01-10 14:49:57 +00:00
parent 5b13063162
commit 48a5fbd333
74 changed files with 311 additions and 292 deletions

View file

@ -29,7 +29,7 @@ namespace juce
ApplicationCommandManager::ApplicationCommandManager()
{
keyMappings = new KeyPressMappingSet (*this);
keyMappings.reset (new KeyPressMappingSet (*this));
Desktop::getInstance().addFocusChangeListener (this);
}

View file

@ -261,7 +261,7 @@ XmlElement* KeyPressMappingSet::createXml (const bool saveDifferencesFromDefault
if (saveDifferencesFromDefaultSet)
{
defaultSet = new KeyPressMappingSet (commandManager);
defaultSet.reset (new KeyPressMappingSet (commandManager));
defaultSet->resetToDefaultMappings();
}