Changeset 828556 for molecuilder


Ignore:
Timestamp:
Feb 25, 2010, 3:18:30 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
a7917d
Parents:
5c9ba2
Message:

FIX: constructor of element now is shortened and all its member variables initialized (thx to BondGraphUnitTest).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/element.cpp

    r5c9ba2 r828556  
    1414/** Constructor of class element.
    1515 */
    16 element::element() {
    17   Z = -1;
    18   No = -1;
    19   previous = NULL;
    20   next = NULL;
    21   sort = NULL;
     16element::element() :
     17  mass(0),
     18  CovalentRadius(0),
     19  VanDerWaalsRadius(0),
     20        Z(-1),
     21        previous(NULL),
     22        next(NULL),
     23        sort(NULL),
     24        No(-1),
     25        Valence(0),
     26        NoValenceOrbitals(0)
     27{
    2228};
    2329
Note: See TracChangeset for help on using the changeset viewer.