Show
Ignore:
Timestamp:
10/05/05 14:34:19 (8 years ago)
Author:
tuan
Message:

Fix up format and some Terminate stuffs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossie/trunk/ossie/parser/InstantiationProperty.cpp

    r397 r604  
    3232{} 
    3333 
    34  
    3534InstantiationProperty::InstantiationProperty(const char *_id, const char *_value): 
    3635id(NULL), value(NULL) 
     
    4241    strcpy (value, _value); 
    4342} 
    44  
    4543 
    4644InstantiationProperty::InstantiationProperty(const InstantiationProperty & _copy): 
     
    5452} 
    5553 
    56  
    5754InstantiationProperty::~InstantiationProperty() 
    5855{ 
     
    6158} 
    6259 
    63  
    6460void InstantiationProperty::setID(const char *_id) 
    6561{ 
    66         if (id != NULL) delete []id; 
    67         id = new char[strlen(_id) + 1]; 
    68         strcpy(id, _id); 
     62    if (id != NULL) delete []id; 
     63    id = new char[strlen(_id) + 1]; 
     64    strcpy(id, _id); 
    6965} 
    7066 
    71  
    72 void InstantiationProperty::setValue (const char *_value) 
     67void InstantiationProperty::setValue(const char *_value) 
    7368{ 
    74         if (value != NULL) delete []value; 
    75         value = new char[strlen(_value) + 1]; 
    76         strcpy(value, _value); 
     69    if (value != NULL) delete []value; 
     70    value = new char[strlen(_value) + 1]; 
     71    strcpy(value, _value); 
    7772} 
    7873 
    79  
     74// \note the caller must delete this pointer 
     75// \remark why do we have this? java implementation translation? ~tp 
    8076char* InstantiationProperty::toString() 
    8177{