Mercurial > hg > svcore
diff base/Command.cpp @ 1429:48e9f538e6e9
Untabify
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 18:02:22 +0000 |
parents | cc27f35aa75c |
children |
line wrap: on
line diff
--- a/base/Command.cpp Thu Mar 01 14:43:40 2018 +0000 +++ b/base/Command.cpp Thu Mar 01 18:02:22 2018 +0000 @@ -24,7 +24,7 @@ MacroCommand::~MacroCommand() { for (size_t i = 0; i < m_commands.size(); ++i) { - delete m_commands[i]; + delete m_commands[i]; } } @@ -38,13 +38,13 @@ MacroCommand::deleteCommand(Command *command) { for (std::vector<Command *>::iterator i = m_commands.begin(); - i != m_commands.end(); ++i) { + i != m_commands.end(); ++i) { - if (*i == command) { - m_commands.erase(i); - delete command; - return; - } + if (*i == command) { + m_commands.erase(i); + delete command; + return; + } } } @@ -58,7 +58,7 @@ MacroCommand::execute() { for (size_t i = 0; i < m_commands.size(); ++i) { - m_commands[i]->execute(); + m_commands[i]->execute(); } } @@ -66,7 +66,7 @@ MacroCommand::unexecute() { for (size_t i = 0; i < m_commands.size(); ++i) { - m_commands[m_commands.size() - i - 1]->unexecute(); + m_commands[m_commands.size() - i - 1]->unexecute(); } }