- Timestamp:
- 01/28/09 10:01:19 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tests/UI/UIbuilder_test.cpp
r256 r257 21 21 public: 22 22 UItest():UIbuilder("test"){} 23 void build(Setting &S, bdmroot* &ret) const{23 bdmroot* build(Setting &S) const{ 24 24 try{ 25 25 int a=S["a"]; … … 27 27 S.lookupValue("S",St); 28 28 cls* tmp = new cls(a,St); 29 ret =tmp;29 return tmp; 30 30 } 31 31 catch (...){ … … 38 38 public: 39 39 UItest2():UIbuilder("test2"){} 40 void build(Setting &S, bdmroot* &ret) const{40 bdmroot* build(Setting &S) const{ 41 41 try{ 42 42 int a=S["a"]; 43 43 string St; 44 44 S.lookupValue("S",St); 45 cls* tmp = new cls2(a,St); 46 ret=tmp; 45 return new cls2(a,St); 47 46 } 48 47 catch (...){