Changeset 104 for trunk/src/python


Ignore:
Timestamp:
Oct 14, 2005 9:43:27 AM (17 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/src/python/PyRpUnits.cc

    r97 r104  
    66typedef struct {
    77    PyObject_HEAD
    8     RpUnits* rp_unit;
     8    const RpUnits* rp_unit;
    99} RpUnitsObject;
    1010
     
    131131    0,                                    /*tp_as_buffer*/
    132132    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,   /*tp_flags*/
    133     "RpUnits Object",                     /*tp_doc*/
     133    "Rappture.Units Object",              /*tp_doc*/
    134134    0,                                    /*tp_traverse*/
    135135    0,                                    /*tp_clear*/
     
    291291
    292292    RpUnitsObject* newRpUnit = NULL;
    293     RpUnits* newConv = NULL;
     293    const RpUnits* newConv = NULL;
    294294
    295295    if (PyTuple_Size(args) > 0) {
     
    360360{
    361361    char* searchUnits = NULL;
    362     RpUnits* foundUnits = NULL;
     362    const RpUnits* foundUnits = NULL;
    363363    RpUnitsObject* returnUnits = NULL;
    364364
Note: See TracChangeset for help on using the changeset viewer.