From e6eaf34412d8fd5590c0ee3c78845878e0d92735 Mon Sep 17 00:00:00 2001 From: Alexandre Bique Date: Sat, 16 May 2009 00:16:59 +0100 Subject: [PATCH] x --- src/ozulis/ast/node-factory.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ozulis/ast/node-factory.cc b/src/ozulis/ast/node-factory.cc index 982a103..8424fc1 100644 --- a/src/ozulis/ast/node-factory.cc +++ b/src/ozulis/ast/node-factory.cc @@ -28,10 +28,10 @@ namespace ozulis IntegerType * NodeFactory::createIntegerType(bool isSigned, uint8_t size) { - static std::map types[2]; + static std::map types[2]; isSigned = !!isSigned; - IntegerType *& type = types[isSigned][size]; + IntegerTypePtr & type = types[isSigned][size]; if (!type) { type = new IntegerType; @@ -44,7 +44,7 @@ namespace ozulis PointerType * NodeFactory::createConstStringType() { - static PointerType * type = 0; + static PointerTypePtr type; if (!type) { @@ -57,7 +57,7 @@ namespace ozulis IntegerType * NodeFactory::createUIntForPtr() { - static IntegerType * type = 0; + static IntegerTypePtr type; if (!type) { -- 2.11.4.GIT