Browse Source

- build stack list using reverse iterator direcly

cl-refactor
yann300 10 years ago
parent
commit
be7f94d815
  1. 6
      mix/DebuggingStateWrapper.cpp

6
mix/DebuggingStateWrapper.cpp

@ -86,10 +86,8 @@ QBigInt* DebuggingStateWrapper::newMemSize()
QStringList DebuggingStateWrapper::debugStack() QStringList DebuggingStateWrapper::debugStack()
{ {
QStringList stack; QStringList stack;
for (auto i: m_state.stack) for (std::vector<u256>::reverse_iterator i = m_state.stack.rbegin(); i != m_state.stack.rend(); ++i)
stack.append(QString::fromStdString(prettyU256(i))); stack.append(QString::fromStdString(prettyU256(*i)));
std::reverse(stack.begin(), stack.end());
return fillList(stack, ""); return fillList(stack, "");
} }

Loading…
Cancel
Save