Browse Source

Merge remote-tracking branch 'up/develop' into deploydialog

cl-refactor
yann300 10 years ago
parent
commit
36085cb949
  1. 13
      mix/QContractDefinition.cpp

13
mix/QContractDefinition.cpp

@ -39,19 +39,8 @@ QContractDefinition::QContractDefinition(QObject* _parent, dev::solidity::Contra
else
m_constructor = new QFunctionDefinition(parent);
std::vector<std::string> found;
for (auto const& f: _contract->getDefinedFunctions())
{
m_functions.append(new QFunctionDefinition(parent, f));
found.push_back(f->getName());
}
for (auto const& it: _contract->getInterfaceFunctions())
{
if (std::find(found.begin(), found.end(), it.second->getDeclaration().getName()) == found.end())
m_functions.append(new QFunctionDefinition(parent, it.second));
}
m_functions.append(new QFunctionDefinition(parent, it.second));
for (auto const& it: _contract->getEvents())
m_events.append(new QFunctionDefinition(parent, it));

Loading…
Cancel
Save