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/leastsquaremin.cpp

    r55a71b ra9b2a0a  
    1616 * \return sum of square distances
    1717 */
    18 double LSQ (const gsl_vector * x, void * params)
     18double LSQ (const gsl_vector * const x, void * params)
    1919{
    2020  double sum = 0.;
    2121  struct LSQ_params *par = (struct LSQ_params *)params;
    22   Vector **vectors = par->vectors;
     22  const Vector ** vectors = par->vectors;
    2323  int num = par->num;
    2424
Note: See TracChangeset for help on using the changeset viewer.