Changeset 2885 in Sophya for trunk/SophyaLib/SkyMap/localmap.cc


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

    r2869 r2885  
    181181{
    182182
    183   if(lm.mInfo_) mInfo_= new DVList(*lm.mInfo_);
     183  if(lm.mInfo_) this->mInfo_= new DVList(*lm.mInfo_);
    184184  recopierVariablesSimples(lm);
    185185}
     
    196196{
    197197
    198   if(lm.mInfo_) mInfo_= new DVList(*lm.mInfo_);
     198  if(lm.mInfo_) this->mInfo_= new DVList(*lm.mInfo_);
    199199  recopierVariablesSimples(lm);
    200200}
     
    236236      recopierVariablesSimples(a);     
    237237      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_));
    240240}
    241241template<class T>
     
    244244      recopierVariablesSimples(a);     
    245245      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_));
    248248}
    249249
     
    271271      if (NbPixels() < 1) CloneOrShare(a);
    272272      else CopyElt(a);
    273       if (mInfo_) delete mInfo_;
    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_));
    276276    }
    277277  return(*this);
Note: See TracChangeset for help on using the changeset viewer.