Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/atom_particleinfo.cpp

    ra3696f rb8d4a3  
    1313ParticleInfo::ParticleInfo() : nr(-1), Name(NULL) {};
    1414
     15ParticleInfo::ParticleInfo(ParticleInfo *pointer) :
     16    nr(pointer->nr),
     17    Name(pointer->Name)
     18    {
     19      if (Name == NULL)
     20        Name = " ";
     21    }
     22
     23
    1524/** Destructor of ParticleInfo.
    1625 */
     
    2231ostream & operator << (ostream &ost, const ParticleInfo &a)
    2332{
    24   if (a.Name == NULL)
    25     ost << "[NULL]";
    26   else
    27     ost << "[" << a.Name << "|" << &a << "]";
     33  ost << "[" << a.Name << "|" << &a << "]";
    2834  return ost;
    2935};
     
    3137ostream & ParticleInfo::operator << (ostream &ost) const
    3238{
    33   if (Name == NULL)
    34     ost << "[NULL]";
    35   else
    36     ost << "[" << Name << "|" << this << "]";
     39  ost << "[" << Name << "|" << this << "]";
    3740  return ost;
    3841};
Note: See TracChangeset for help on using the changeset viewer.