diff options
author | fluxgen <fluxgen> | 2003-09-29 14:00:46 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-09-29 14:00:46 (GMT) |
commit | 71504b8bbe636bc49795ca3e94e78a70a2602542 (patch) | |
tree | a6c015e4e878830d0bd7735dc8d620ef15c78241 /src/FbTk/MacroCommand.cc | |
parent | 2d8613ca6cf9befae0346ed8e55c8df356fe73de (diff) | |
download | fluxbox_pavel-71504b8bbe636bc49795ca3e94e78a70a2602542.zip fluxbox_pavel-71504b8bbe636bc49795ca3e94e78a70a2602542.tar.bz2 |
added size accessor
Diffstat (limited to 'src/FbTk/MacroCommand.cc')
-rw-r--r-- | src/FbTk/MacroCommand.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/FbTk/MacroCommand.cc b/src/FbTk/MacroCommand.cc index 5e82fec..d655099 100644 --- a/src/FbTk/MacroCommand.cc +++ b/src/FbTk/MacroCommand.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: MacroCommand.cc,v 1.1 2003/01/11 01:09:24 fluxgen Exp $ | 22 | // $Id: MacroCommand.cc,v 1.2 2003/09/29 14:00:46 fluxgen Exp $ |
23 | 23 | ||
24 | #include "MacroCommand.hh" | 24 | #include "MacroCommand.hh" |
25 | 25 | ||
@@ -29,6 +29,10 @@ void MacroCommand::add(RefCount<Command> &com) { | |||
29 | m_commandlist.push_back(com); | 29 | m_commandlist.push_back(com); |
30 | } | 30 | } |
31 | 31 | ||
32 | unsigned int MacroCommand::size() const { | ||
33 | return m_commandlist.size(); | ||
34 | } | ||
35 | |||
32 | void MacroCommand::execute() { | 36 | void MacroCommand::execute() { |
33 | for (size_t i=0; i < m_commandlist.size(); ++i) | 37 | for (size_t i=0; i < m_commandlist.size(); ++i) |
34 | m_commandlist[i]->execute(); | 38 | m_commandlist[i]->execute(); |