Changeset View
Changeset View
Standalone View
Standalone View
commands/kpMacroCommand.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | |||||
62 | 62 | | |||
63 | // public virtual [base kpCommand] | 63 | // public virtual [base kpCommand] | ||
64 | kpCommandSize::SizeType kpMacroCommand::size () const | 64 | kpCommandSize::SizeType kpMacroCommand::size () const | ||
65 | { | 65 | { | ||
66 | qCDebug(kpLogCommands) << "kpMacroCommand::size()"; | 66 | qCDebug(kpLogCommands) << "kpMacroCommand::size()"; | ||
67 | SizeType s = 0; | 67 | SizeType s = 0; | ||
68 | 68 | | |||
69 | qCDebug(kpLogCommands) << "\tcalculating:"; | 69 | qCDebug(kpLogCommands) << "\tcalculating:"; | ||
70 | foreach (kpCommand *cmd, m_commandList) | 70 | for (auto *cmd : m_commandList) | ||
71 | { | 71 | { | ||
72 | qCDebug(kpLogCommands) << "\t\tcurrentSize=" << s << " + " | 72 | qCDebug(kpLogCommands) << "\t\tcurrentSize=" << s << " + " | ||
73 | << cmd->name () << ".size=" << cmd->size () | 73 | << cmd->name () << ".size=" << cmd->size (); | ||
74 | << endl; | | |||
75 | s += cmd->size (); | 74 | s += cmd->size (); | ||
76 | } | 75 | } | ||
77 | 76 | | |||
78 | qCDebug(kpLogCommands) << "\treturning " << s; | 77 | qCDebug(kpLogCommands) << "\treturning " << s; | ||
79 | return s; | 78 | return s; | ||
80 | } | 79 | } | ||
81 | 80 | | |||
82 | //--------------------------------------------------------------------- | 81 | //--------------------------------------------------------------------- | ||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |