Changeset 257 for tests

Show
Ignore:
Timestamp:
01/28/09 10:01:19 (15 years ago)
Author:
smidl
Message:

All objects have a virtual predecessor. This allows type checking in UI, see

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tests/UI/UIbuilder_test.cpp

    r256 r257  
    2121        public: 
    2222        UItest():UIbuilder("test"){} 
    23         void build(Setting &S, bdmroot* &ret) const{ 
     23        bdmroot* build(Setting &S) const{ 
    2424                try{ 
    2525                        int a=S["a"]; 
     
    2727                        S.lookupValue("S",St); 
    2828                        cls* tmp = new cls(a,St); 
    29                         ret=tmp; 
     29                        return tmp; 
    3030                } 
    3131                catch (...){ 
     
    3838        public: 
    3939        UItest2():UIbuilder("test2"){} 
    40         void build(Setting &S, bdmroot* &ret) const{ 
     40        bdmroot* build(Setting &S) const{ 
    4141                try{ 
    4242                        int a=S["a"]; 
    4343                        string St; 
    4444                        S.lookupValue("S",St); 
    45                         cls* tmp = new cls2(a,St); 
    46                         ret=tmp; 
     45                        return  new cls2(a,St); 
    4746                } 
    4847                catch (...){