Browse Source

Fixed use of libraries.

cl-refactor
chriseth 10 years ago
parent
commit
49134ece7a
  1. 2
      libsolidity/CompilerStack.cpp
  2. 2
      libsolidity/CompilerStack.h

2
libsolidity/CompilerStack.cpp

@ -264,7 +264,7 @@ void CompilerStack::reset(bool _keepSources)
{ {
m_sources.clear(); m_sources.clear();
if (m_addStandardSources) if (m_addStandardSources)
addSources(StandardSources); addSources(StandardSources, true);
} }
m_globalContext.reset(); m_globalContext.reset();
m_sourceOrder.clear(); m_sourceOrder.clear();

2
libsolidity/CompilerStack.h

@ -140,7 +140,7 @@ private:
std::shared_ptr<SourceUnit> ast; std::shared_ptr<SourceUnit> ast;
std::string interface; std::string interface;
bool isLibrary = false; bool isLibrary = false;
void reset() { scanner.reset(); ast.reset(); interface.clear(); isLibrary = false;} void reset() { scanner.reset(); ast.reset(); interface.clear(); }
}; };
struct Contract struct Contract

Loading…
Cancel
Save