Ignore:
Timestamp:
Oct 14, 2005 9:43:27 AM (18 years ago)
Author:
dkearney
Message:

This update brings us one step closer to being const correct in the RpUnits
class. Added a few more comments. All other files touched were made to
comply with the new const correct RpUnits.[h,cc]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/src/RpNumber_test.cc

    r40 r104  
    8484void define_some_units()
    8585{
    86     RpUnits * meters = RpUnits::define("m", NULL);
     86    const RpUnits * meters = RpUnits::define("m", NULL);
    8787    RpUnits::makeMetric(meters);
    8888    RpUnits::define("V", NULL);
    8989    RpUnits::define("s", NULL);
    9090    RpUnits::define("cm2/Vs", NULL);
    91     RpUnits* angstrom = RpUnits::define("A", NULL);
     91    const RpUnits* angstrom = RpUnits::define("A", NULL);
    9292    RpUnits::define(angstrom, meters, angstrom2meter, meter2angstrom);
    93     RpUnits* fahrenheit = RpUnits::define("F", NULL);
    94     RpUnits* celcius = RpUnits::define("C", NULL);
    95     RpUnits* kelvin = RpUnits::define("K", NULL);
     93    const RpUnits* fahrenheit = RpUnits::define("F", NULL);
     94    const RpUnits* celcius = RpUnits::define("C", NULL);
     95    const RpUnits* kelvin = RpUnits::define("K", NULL);
    9696    RpUnits::define(fahrenheit, celcius, fahrenheit2centigrade, centigrade2fahrenheit);
    9797    RpUnits::define(celcius, kelvin, centigrade2kelvin, kelvin2centigrade);
Note: See TracChangeset for help on using the changeset viewer.