Changeset 346 for code/branches/FICN/src/loader/LightManager.cc
- Timestamp:
- Nov 29, 2007, 4:21:30 PM (17 years ago)
- Location:
- code/branches/FICN
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN
-
Property
svn:ignore
set to
FICN.sln
FICN.ncb
FICN.vcproj
FICN.vcproj.RGRIEDERT60.rgrieder.user
FICN.suo
obj
-
Property
svn:ignore
set to
-
code/branches/FICN/src/loader/LightManager.cc
r341 r346 7 7 LightManager::LightManager() 8 8 { 9 vector<Light> this->elements_ = new vector<Light>;9 std::vector<Light> elements_ = *(new std::vector<Light>); 10 10 } 11 11 … … 14 14 if (!xml.isEmpty()) 15 15 { 16 int nLights = xml.nChildNode( "light");16 int nLights = xml.nChildNode((const wchar_t*)"light"); 17 17 for (int i=0; i<nLights;i++) 18 18 { 19 Light l = new Light(xml.getChildNode("light",i));20 this->elements_.append(l);19 Light l = *(new Light(xml.getChildNode((const wchar_t*)"light",i))); 20 this->elements_.insert(elements_.end(),l); 21 21 } 22 22 }
Note: See TracChangeset
for help on using the changeset viewer.