Pointer type cleanup: Use ASTPointer only for AST nodes and shared_ptr for type

pointer.
This commit is contained in:
Christian 2014-10-20 14:00:37 +02:00
parent ee06ed2ff8
commit c24fa78b21
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ namespace
void parseTextAndResolveNames(const std::string& _source)
{
Parser parser;
ptr<ContractDefinition> contract = parser.parse(
ASTPointer<ContractDefinition> contract = parser.parse(
std::make_shared<Scanner>(CharStream(_source)));
NameAndTypeResolver resolver;
resolver.resolveNamesAndTypes(*contract);

View File

@ -37,7 +37,7 @@ namespace test
namespace
{
ptr<ASTNode> parseText(const std::string& _source)
ASTPointer<ASTNode> parseText(const std::string& _source)
{
Parser parser;
return parser.parse(std::make_shared<Scanner>(CharStream(_source)));