From 88239460bb24f0c7d3f44715c69e012d53bff7ea Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 22 Apr 2015 10:23:00 +0200 Subject: [PATCH] Fixed use of libraries. --- CompilerStack.cpp | 2 +- CompilerStack.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CompilerStack.cpp b/CompilerStack.cpp index d6274e2c7..1cbed55ee 100644 --- a/CompilerStack.cpp +++ b/CompilerStack.cpp @@ -264,7 +264,7 @@ void CompilerStack::reset(bool _keepSources) { m_sources.clear(); if (m_addStandardSources) - addSources(StandardSources); + addSources(StandardSources, true); } m_globalContext.reset(); m_sourceOrder.clear(); diff --git a/CompilerStack.h b/CompilerStack.h index 2e7c217d5..2f8c993b0 100644 --- a/CompilerStack.h +++ b/CompilerStack.h @@ -140,7 +140,7 @@ private: std::shared_ptr ast; std::string interface; bool isLibrary = false; - void reset() { scanner.reset(); ast.reset(); interface.clear(); isLibrary = false;} + void reset() { scanner.reset(); ast.reset(); interface.clear(); } }; struct Contract