Changeset 2885 in Sophya for trunk/SophyaLib/SkyMap/spherethetaphi.cc
- Timestamp:
- Jan 4, 2006, 2:36:47 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/spherethetaphi.cc
r2869 r2885 81 81 NPix_ = s.NPix_; 82 82 Omega_ = s.Omega_; 83 if(s.mInfo_) mInfo_= new DVList(*s.mInfo_);83 if(s.mInfo_) this->mInfo_= new DVList(*s.mInfo_); 84 84 } 85 85 … … 92 92 NPix_ = s.NPix_; 93 93 Omega_ = s.Omega_; 94 if(s.mInfo_) mInfo_= new DVList(*s.mInfo_);94 if(s.mInfo_) this->mInfo_= new DVList(*s.mInfo_); 95 95 } 96 96 … … 139 139 Theta_.CloneOrShare(a.Theta_); 140 140 pixels_.CloneOrShare(a.pixels_); 141 if ( mInfo_) {delete mInfo_;mInfo_ = NULL;}142 if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_));141 if (this->mInfo_) {delete this->mInfo_; this->mInfo_ = NULL;} 142 if (a.mInfo_) this->mInfo_ = new DVList(*(a.mInfo_)); 143 143 } 144 144 template<class T> … … 153 153 Theta_.Share(a.Theta_); 154 154 pixels_.Share(a.pixels_); 155 if ( mInfo_) {delete mInfo_;mInfo_ = NULL;}156 if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_));155 if (this->mInfo_) {delete this->mInfo_; this->mInfo_ = NULL;} 156 if (a.mInfo_) this->mInfo_ = new DVList(*(a.mInfo_)); 157 157 } 158 158 … … 169 169 if (NbPixels() < 1) CloneOrShare(a); 170 170 else CopyElt(a); 171 if ( mInfo_) deletemInfo_;172 mInfo_ = NULL;173 if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_));171 if (this->mInfo_) delete this->mInfo_; 172 this->mInfo_ = NULL; 173 if (a.mInfo_) this->mInfo_ = new DVList(*(a.mInfo_)); 174 174 } 175 175 return(*this); … … 697 697 void SphereThetaPhi<T>::print(ostream& os) const 698 698 { 699 if( mInfo_) os << " DVList Info= " << *mInfo_<< endl;699 if(this->mInfo_) os << " DVList Info= " << *(this->mInfo_) << endl; 700 700 // 701 701 os << " NTheta_= " << NTheta_ << endl;
Note:
See TracChangeset
for help on using the changeset viewer.