Stack compiler now correctly returns a string and not a pointer

This commit is contained in:
Lefteris Karapetsas 2014-12-05 12:41:32 +01:00
parent 0c24dc096e
commit 80ad715764
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ public:
msg += *extra;
BOOST_FAIL(msg);
}
std::string generatedInterfaceString = *m_compilerStack.getJsonDocumentation(ABI_INTERFACE);
std::string generatedInterfaceString = m_compilerStack.getJsonDocumentation(ABI_INTERFACE);
Json::Value generatedInterface;
m_reader.parse(generatedInterfaceString, generatedInterface);
Json::Value expectedInterface;

View File

@ -55,9 +55,9 @@ public:
}
if (_userDocumentation)
generatedDocumentationString = *m_compilerStack.getJsonDocumentation(NATSPEC_USER);
generatedDocumentationString = m_compilerStack.getJsonDocumentation(NATSPEC_USER);
else
generatedDocumentationString = *m_compilerStack.getJsonDocumentation(NATSPEC_DEV);
generatedDocumentationString = m_compilerStack.getJsonDocumentation(NATSPEC_DEV);
Json::Value generatedDocumentation;
m_reader.parse(generatedDocumentationString, generatedDocumentation);
Json::Value expectedDocumentation;