Ticket #35992: patch-compileerrors.diff
File patch-compileerrors.diff, 1.9 KB (added by mojca (Mojca Miklavec), 12 years ago) |
---|
-
source/digits_hits/include/GateMaps.hh
old new inline GateMap<Tkey,Tvalue>::GateMap(size_t n, GateMap<Tkey,Tvalue> *mapArray[]) 117 117 for (size_t i=0; i<n ; i++){ 118 118 GateMap<Tkey,Tvalue>* mapElement = mapArray[i]; 119 119 for (iterator iter = mapElement->begin(); iter != mapElement->end(); iter++) 120 insert(*iter);120 this->insert(*iter); 121 121 } 122 122 } 123 123 -
source/general/include/GateUIcmdWithAVector.hh
old new template<typename vContentType> 118 118 G4String GateUIcmdWithAVector<vContentType>::ConvertToString 119 119 (std::vector<vContentType> vec) 120 120 { 121 char st[100];121 //char st[100]; 122 122 //LF 123 123 //std::ostrstream os(st,100); 124 std::ostringstream os (st,100);124 std::ostringstream os; 125 125 //LF 126 126 for (G4int i=0; i<vec.size(); i++) os << vec[i] << " "; 127 127 os << '\0'; 128 G4String vl = st;128 G4String vl = os.str(); 129 129 G4cout << "GateUIcmdWithAVector::ConvertToString : " << vl << G4endl; 130 130 return vl; 131 131 } -
source/physics/src/GateBinaryCascade.cc
G4Fragment * GateBinaryCascade::FindFragments() 2275 2275 } 2276 2276 2277 2277 G4int zCaptured = 0; 2278 G4LorentzVector CapturedMomentum =0;2278 G4LorentzVector CapturedMomentum(0); 2279 2279 for(i = theCapturedList.begin(); i != theCapturedList.end(); ++i) 2280 2280 { 2281 2281 CapturedMomentum += (*i)->Get4Momentum(); … … G4LorentzVector GateBinaryCascade::GetFinalNucleusMomentum() 2389 2389 // return momentum of nucleus for use with precompound model; also keep transformation to 2390 2390 // apply to precompoud products. 2391 2391 2392 G4LorentzVector CapturedMomentum =0;2392 G4LorentzVector CapturedMomentum(0); 2393 2393 G4KineticTrackVector::iterator i; 2394 2394 // G4cout << "GetFinalNucleusMomentum Captured size: " <<theCapturedList.size() << G4endl; 2395 2395 for(i = theCapturedList.begin(); i != theCapturedList.end(); ++i)