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/RpUnitsC_test.c

    r93 r104  
    5151{
    5252
    53     RpUnits* meters = rpDefineUnit("m",NULL);
     53    const RpUnits* meters = rpDefineUnit("m",NULL);
    5454
    55     RpUnits* centimeters = NULL;
    56     RpUnits* nanometers = NULL;
    57     RpUnits* cm_basis = NULL;
     55    const RpUnits* centimeters = NULL;
     56    const RpUnits* nanometers = NULL;
     57    const RpUnits* cm_basis = NULL;
    5858
    59     RpUnits* angstrom = rpDefineUnit("A",NULL);
    60     RpUnits* fahrenheit = rpDefineUnit("F",NULL);
    61     RpUnits* celcius = rpDefineUnit("C",NULL);
    62     RpUnits* kelvin = rpDefineUnit("K",NULL);
     59    const RpUnits* angstrom = rpDefineUnit("A",NULL);
     60    const RpUnits* fahrenheit = rpDefineUnit("F",NULL);
     61    const RpUnits* celcius = rpDefineUnit("C",NULL);
     62    const RpUnits* kelvin = rpDefineUnit("K",NULL);
    6363
    6464    rpDefineConv(angstrom, meters, angstrom2meter, meter2angstrom);
Note: See TracChangeset for help on using the changeset viewer.