diff --git a/libsolidity/Types.cpp b/libsolidity/Types.cpp index 6c971a742..d14311a26 100644 --- a/libsolidity/Types.cpp +++ b/libsolidity/Types.cpp @@ -52,7 +52,7 @@ shared_ptr Type::fromElementaryTypeName(Token::Value _typeToken) else if (_typeToken == Token::ADDRESS) return make_shared(0, IntegerType::Modifier::ADDRESS); else if (_typeToken == Token::BOOL) - return make_shared(); + return shared_ptr(); else BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Unable to convert elementary typename " + std::string(Token::toString(_typeToken)) + " to type.")); @@ -87,7 +87,7 @@ shared_ptr Type::forLiteral(Literal const& _literal) { case Token::TRUE_LITERAL: case Token::FALSE_LITERAL: - return make_shared(); + return shared_ptr(); case Token::NUMBER: return IntegerType::smallestTypeForLiteral(_literal.getValue()); case Token::STRING_LITERAL: