From 25273778dccd65e78a196f7f999b5ea792e414e5 Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 5 Dec 2014 15:35:05 +0100 Subject: Renamed url to identifier and added some comments. --- CompilerStack.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CompilerStack.cpp') diff --git a/CompilerStack.cpp b/CompilerStack.cpp index 62172384..20b0b3e5 100644 --- a/CompilerStack.cpp +++ b/CompilerStack.cpp @@ -201,12 +201,12 @@ void CompilerStack::resolveImports() for (ASTPointer const& node: _source->ast->getNodes()) if (ImportDirective const* import = dynamic_cast(node.get())) { - string const& url = import->getURL(); - if (!m_sources.count(url)) + string const& id = import->getIdentifier(); + if (!m_sources.count(id)) BOOST_THROW_EXCEPTION(ParserError() << errinfo_sourceLocation(import->getLocation()) << errinfo_comment("Source not found.")); - toposort(&m_sources[url]); + toposort(&m_sources[id]); } sourceOrder.push_back(_source); }; -- cgit v1.2.3