Changeset 2885 in Sophya for trunk/SophyaLib/SkyMap/localmap.cc
- Timestamp:
- Jan 4, 2006, 2:36:47 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/localmap.cc
r2869 r2885 181 181 { 182 182 183 if(lm.mInfo_) mInfo_= new DVList(*lm.mInfo_);183 if(lm.mInfo_) this->mInfo_= new DVList(*lm.mInfo_); 184 184 recopierVariablesSimples(lm); 185 185 } … … 196 196 { 197 197 198 if(lm.mInfo_) mInfo_= new DVList(*lm.mInfo_);198 if(lm.mInfo_) this->mInfo_= new DVList(*lm.mInfo_); 199 199 recopierVariablesSimples(lm); 200 200 } … … 236 236 recopierVariablesSimples(a); 237 237 pixels_.CloneOrShare(a.pixels_); 238 if ( mInfo_) {delete mInfo_;mInfo_ = NULL;}239 if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_));238 if (this->mInfo_) {delete this->mInfo_; this->mInfo_ = NULL;} 239 if (a.mInfo_) this->mInfo_ = new DVList(*(a.mInfo_)); 240 240 } 241 241 template<class T> … … 244 244 recopierVariablesSimples(a); 245 245 pixels_.Share(a.pixels_); 246 if ( mInfo_) {delete mInfo_;mInfo_ = NULL;}247 if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_));246 if (this->mInfo_) {delete this->mInfo_; this->mInfo_ = NULL;} 247 if (a.mInfo_) this->mInfo_ = new DVList(*(a.mInfo_)); 248 248 } 249 249 … … 271 271 if (NbPixels() < 1) CloneOrShare(a); 272 272 else CopyElt(a); 273 if ( mInfo_) deletemInfo_;274 mInfo_ = NULL;275 if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_));273 if (this->mInfo_) delete this->mInfo_; 274 this->mInfo_ = NULL; 275 if (a.mInfo_) this->mInfo_ = new DVList(*(a.mInfo_)); 276 276 } 277 277 return(*this);
Note:
See TracChangeset
for help on using the changeset viewer.