mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-05 03:50:07 +00:00
Formatting
This commit is contained in:
parent
ff0cb4ad5b
commit
4153d59e39
279 changed files with 1281 additions and 1281 deletions
|
|
@ -88,7 +88,7 @@ void ApplicationCommandManager::registerAllCommandsForTarget (ApplicationCommand
|
|||
|
||||
for (int i = 0; i < commandIDs.size(); ++i)
|
||||
{
|
||||
ApplicationCommandInfo info (commandIDs.getUnchecked(i));
|
||||
ApplicationCommandInfo info (commandIDs.getUnchecked (i));
|
||||
target->getCommandInfo (info.commandID, info);
|
||||
|
||||
registerCommand (info);
|
||||
|
|
@ -122,8 +122,8 @@ void ApplicationCommandManager::commandStatusChanged()
|
|||
ApplicationCommandInfo* ApplicationCommandManager::getMutableCommandForID (CommandID commandID) const noexcept
|
||||
{
|
||||
for (int i = commands.size(); --i >= 0;)
|
||||
if (commands.getUnchecked(i)->commandID == commandID)
|
||||
return commands.getUnchecked(i);
|
||||
if (commands.getUnchecked (i)->commandID == commandID)
|
||||
return commands.getUnchecked (i);
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
|
@ -155,7 +155,7 @@ StringArray ApplicationCommandManager::getCommandCategories() const
|
|||
StringArray s;
|
||||
|
||||
for (int i = 0; i < commands.size(); ++i)
|
||||
s.addIfNotAlreadyThere (commands.getUnchecked(i)->categoryName, false);
|
||||
s.addIfNotAlreadyThere (commands.getUnchecked (i)->categoryName, false);
|
||||
|
||||
return s;
|
||||
}
|
||||
|
|
@ -165,8 +165,8 @@ Array<CommandID> ApplicationCommandManager::getCommandsInCategory (const String&
|
|||
Array<CommandID> results;
|
||||
|
||||
for (int i = 0; i < commands.size(); ++i)
|
||||
if (commands.getUnchecked(i)->categoryName == categoryName)
|
||||
results.add (commands.getUnchecked(i)->commandID);
|
||||
if (commands.getUnchecked (i)->categoryName == categoryName)
|
||||
results.add (commands.getUnchecked (i)->commandID);
|
||||
|
||||
return results;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue