Removed "bool AST::isInterface(std::string*)"
Test: links
Change-Id: I603831ed8aa8a8794a54d38ce0e1d0b6c68701cb
diff --git a/Coordinator.cpp b/Coordinator.cpp
index 1ec0554..9b31c77 100644
--- a/Coordinator.cpp
+++ b/Coordinator.cpp
@@ -122,17 +122,16 @@
err = UNKNOWN_ERROR;
} else {
- std::string ifaceName;
- if (ast->isInterface(&ifaceName)) {
+ if (ast->isInterface()) {
if (fqName.name() == "types") {
fprintf(stderr,
"ERROR: File at '%s' declares an interface '%s' "
"instead of the expected types common to the package.\n",
path.c_str(),
- ifaceName.c_str());
+ ast->getInterface()->localName().c_str());
err = UNKNOWN_ERROR;
- } else if (ifaceName != fqName.name()) {
+ } else if (ast->getInterface()->localName() != fqName.name()) {
fprintf(stderr,
"ERROR: File at '%s' does not declare interface type "
"'%s'.\n",