diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-05 19:41:32 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-05 19:41:32 +0800 |
commit | c8f96589c58c1a0ab290a192e4aa1dfb263d01df (patch) | |
tree | f6704f3c19d03bb7b5af175e223ea81a5fff104a /CompilerStack.cpp | |
parent | 27ef18865d4014e50e917674cf4a7444b7f5565a (diff) | |
download | dexon-solidity-c8f96589c58c1a0ab290a192e4aa1dfb263d01df.tar dexon-solidity-c8f96589c58c1a0ab290a192e4aa1dfb263d01df.tar.gz dexon-solidity-c8f96589c58c1a0ab290a192e4aa1dfb263d01df.tar.bz2 dexon-solidity-c8f96589c58c1a0ab290a192e4aa1dfb263d01df.tar.lz dexon-solidity-c8f96589c58c1a0ab290a192e4aa1dfb263d01df.tar.xz dexon-solidity-c8f96589c58c1a0ab290a192e4aa1dfb263d01df.tar.zst dexon-solidity-c8f96589c58c1a0ab290a192e4aa1dfb263d01df.zip |
Stack compiler now correctly returns a string and not a pointer
Diffstat (limited to 'CompilerStack.cpp')
-rw-r--r-- | CompilerStack.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CompilerStack.cpp b/CompilerStack.cpp index 3281442f..c83257a1 100644 --- a/CompilerStack.cpp +++ b/CompilerStack.cpp @@ -84,7 +84,7 @@ void CompilerStack::streamAssembly(ostream& _outStream) m_compiler->streamAssembly(_outStream); } -std::string const* CompilerStack::getJsonDocumentation(enum DocumentationType _type) +std::string const& CompilerStack::getJsonDocumentation(enum DocumentationType _type) { if (!m_parseSuccessful) BOOST_THROW_EXCEPTION(CompilerError() << errinfo_comment("Parsing was not successful.")); @@ -99,13 +99,13 @@ std::string const* CompilerStack::getJsonDocumentation(enum DocumentationType _t { case NATSPEC_USER: createDocIfNotThere(m_userDocumentation); - return m_userDocumentation.get(); + return *m_userDocumentation; case NATSPEC_DEV: createDocIfNotThere(m_devDocumentation); - return m_devDocumentation.get(); + return *m_devDocumentation; case ABI_INTERFACE: createDocIfNotThere(m_interface); - return m_interface.get(); + return *m_interface; } BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Illegal documentation type.")); |