Ignore:
Timestamp:
Jan 4, 2006, 2:36:47 PM (20 years ago)
Author:
ansari
Message:

Modifs (ajout this->) pour compilation avec g++ 4 (V >= 3.4) - Reza 4 Jan 2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyMap/spherethetaphi.cc

    r2869 r2885  
    8181  NPix_  = s.NPix_;
    8282  Omega_ = s.Omega_;
    83   if(s.mInfo_) mInfo_= new DVList(*s.mInfo_);
     83  if(s.mInfo_) this->mInfo_= new DVList(*s.mInfo_);
    8484}
    8585
     
    9292  NPix_  = s.NPix_;
    9393  Omega_ = s.Omega_;
    94   if(s.mInfo_) mInfo_= new DVList(*s.mInfo_);
     94  if(s.mInfo_) this->mInfo_= new DVList(*s.mInfo_);
    9595}
    9696
     
    139139  Theta_.CloneOrShare(a.Theta_);
    140140  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_));
    143143}
    144144template<class T>
     
    153153  Theta_.Share(a.Theta_);
    154154  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_));
    157157}
    158158
     
    169169      if (NbPixels() < 1) CloneOrShare(a);
    170170      else CopyElt(a);
    171       if (mInfo_) delete mInfo_;
    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_));
    174174    }
    175175  return(*this);
     
    697697void SphereThetaPhi<T>::print(ostream& os) const
    698698{
    699   if(mInfo_) os << "  DVList Info= " << *mInfo_ << endl;
     699  if(this->mInfo_) os << "  DVList Info= " << *(this->mInfo_) << endl;
    700700  //
    701701  os << " NTheta_= " << NTheta_ << endl;
Note: See TracChangeset for help on using the changeset viewer.