Ignore:
Timestamp:
May 5, 2016, 5:14:19 PM (10 years ago)
Author:
Frederik Heber <heber@…>
Parents:
4a319a
git-author:
Frederik Heber <heber@…> (05/05/16 14:54:56)
git-committer:
Frederik Heber <heber@…> (05/05/16 17:14:19)
Message:

Replaced .. by getConstInstance() wherever possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/RandomNumbers/unittests/RandomNumberGeneratorFactoryUnitTest.cpp

    r4a319a r94605f  
    104104{
    105105  // check one of the engines and distributions
    106   RandomNumberGenerator& rng = *(RandomNumberGeneratorFactory::getInstance().
    107       GeneratorPrototypeTable[RandomNumberEngineFactory::minstd_rand0]
    108                               [RandomNumberDistributionFactory::uniform_smallint]);
     106  const RandomNumberGenerator& rng =
     107      *RandomNumberGeneratorFactory::GeneratorPrototypeTable[RandomNumberEngineFactory::minstd_rand0]
     108                              [RandomNumberDistributionFactory::uniform_smallint];
    109109  CPPUNIT_ASSERT_EQUAL(
    110110      std::string(typeid(boost::minstd_rand0).name()),
Note: See TracChangeset for help on using the changeset viewer.