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/spherehealpix.cc

    r2869 r2885  
    113113  nPix_ = s.nPix_;
    114114  omeg_ = s.omeg_;
    115   if(s.mInfo_) mInfo_= new DVList(*s.mInfo_);
     115  if(s.mInfo_) this->mInfo_= new DVList(*s.mInfo_);
    116116}
    117117//++
     
    126126  nPix_ = s.nPix_;
    127127  omeg_ = s.omeg_;
    128   if(s.mInfo_) mInfo_= new DVList(*s.mInfo_);
     128  if(s.mInfo_) this->mInfo_= new DVList(*s.mInfo_);
    129129  //  CloneOrShare(s);
    130130}
     
    141141  sliceBeginIndex_.CloneOrShare(a.sliceBeginIndex_);
    142142  sliceLenght_.CloneOrShare(a.sliceLenght_);
    143   if (mInfo_) {delete mInfo_; mInfo_ = NULL;}
    144   if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_));
     143  if (this->mInfo_) {delete this->mInfo_; this->mInfo_ = NULL;}
     144  if (a.mInfo_) this->mInfo_ = new DVList(*(a.mInfo_));
    145145}
    146146
     
    155155  sliceBeginIndex_.Share(a.sliceBeginIndex_);
    156156  sliceLenght_.Share(a.sliceLenght_);
    157   if (mInfo_) {delete mInfo_; mInfo_ = NULL;}
    158   if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_));
     157  if (this->mInfo_) {delete this->mInfo_; this->mInfo_ = NULL;}
     158  if (a.mInfo_) this->mInfo_ = new DVList(*(a.mInfo_));
    159159}
    160160
     
    172172     
    173173     
    174       if (mInfo_) delete mInfo_;
    175       mInfo_ = NULL;
    176       if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_));
     174      if (this->mInfo_) delete this->mInfo_;
     175      this->mInfo_ = NULL;
     176      if (a.mInfo_) this->mInfo_ = new DVList(*(a.mInfo_));
    177177    }
    178178  return(*this);
     
    674674void SphereHEALPix<T>::print(ostream& os) const
    675675{
    676   if(mInfo_) os << "  DVList Info= " << *mInfo_ << endl;
     676  if(this->mInfo_) os << "  DVList Info= " << *(this->mInfo_) << endl;
    677677  //
    678678  os << " nSide_ = " << nSide_  << endl;
Note: See TracChangeset for help on using the changeset viewer.