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/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp

    r55a71b ra9b2a0a  
    8181  // init tesselation and linked cell
    8282  Surface = new Tesselation;
    83   TestMolecule->TesselStruct = Surface;
    84   FindNonConvexBorder((ofstream *)&cerr, TestMolecule, LC, 2.5, NULL);
     83  FindNonConvexBorder((ofstream *)&cerr, TestMolecule, Surface, (const LinkedCell *&)LC, 2.5, NULL);
    8584  LC = new LinkedCell(TestMolecule, 5.);
    8685  CPPUNIT_ASSERT_EQUAL( (size_t)4, Surface->PointsOnBoundary.size() );
     
    123122  // remove
    124123  delete(TestMolecule);
    125   // note that Surface and all the atoms are cleaned by TestMolecule
     124  delete(Surface);
     125  // note that all the atoms are cleaned by TestMolecule
    126126  delete(LC);
    127127  delete(tafel);
Note: See TracChangeset for help on using the changeset viewer.