Ignore:
Timestamp:
Apr 13, 2000, 3:31:18 PM (25 years ago)
Author:
ansari
Message:

divers nettoyages : const. de copie, surcharge = etc.

File:
1 edited

Legend:

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

    r906 r908  
    246246void SphereHEALPix<T>::CloneOrShare(const SphereHEALPix<T>& a)
    247247{
    248   string exmsg = "SphereHEALPix<T>::CloneOrShare()";
    249   if (nSide_ != a.nSide_ )
    250     {
    251       cout << " spheres of different sizes " << endl;
    252       string exmsg = "SphereHEALPix<T>::CloneOrShare()";
    253       throw( ParmError(exmsg) );
    254     }
    255248  pixels_.CloneOrShare(a.pixels_);
    256249  sliceBeginIndex_.CloneOrShare(a.sliceBeginIndex_);
     
    263256  if (this != &a)
    264257    {
    265       CloneOrShare(a);
    266258      nSide_= a.nSide_;
    267259     nPix_ = a.nPix_;
    268260     omeg_ = a.omeg_;
     261     CloneOrShare(a);
    269262     if (mInfo_) delete mInfo_;
     263     mInfo_ = NULL;
    270264     if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_));
    271265    }
Note: See TracChangeset for help on using the changeset viewer.