Ignore:
Timestamp:
Oct 27, 2009, 4:11:22 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
069034
Parents:
55a71b
Message:

Huge refactoring to make const what is const (ticket #38), continued.

  • too many changes because of too many cross-references to be able to list them up here.
  • NOTE that "make check" runs fine and did catch several error.
  • note that we had to use const_iterator several times when the map, ... was declared const.
  • at times we changed an allocated LinkedCell LCList(...) into

const LinkedCell *LCList;
LCList = new LinkedCell(...);

  • also mutable (see ticket #5) was used, e.g. for molecule::InternalPointer (PointCloud changes are allowed, because they are just accounting).

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecule_geometry.cpp

    r55a71b ra9b2a0a  
    122122 * \return pointer to center of all vector
    123123 */
    124 Vector * molecule::DetermineCenterOfAll(ofstream *out)
     124Vector * molecule::DetermineCenterOfAll(ofstream *out) const
    125125{
    126126  atom *ptr = start->next;  // start at first in list
     
    198198 * \param *factor pointer to scaling factor
    199199 */
    200 void molecule::Scale(double **factor)
     200void molecule::Scale(const double ** const factor)
    201201{
    202202  atom *ptr = start;
Note: See TracChangeset for help on using the changeset viewer.