Ignore:
Timestamp:
11/24/11 16:20:36 (8 years ago)
Author:
mario
Message:

complete constructors initialize all class-members with sane defaults

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/legacy/jvmlink/src/main/c++/JVMLinkObject.cpp

    r7818 r7820  
    3636JVMLinkObject::JVMLinkObject(const std::string& name) { 
    3737        this->name = name; 
     38        this->size = 0; 
     39        this->length = 0; 
     40        this->type = NULL_TYPE; 
     41        this->insideType = NULL_TYPE; 
     42        this->data = NULL; 
    3843} 
    3944 
     
    4449        this->length = 1; 
    4550        this->type = type; 
     51        this->insideType = NULL_TYPE; 
    4652        this->data = data; 
    4753} 
Note: See TracChangeset for help on using the changeset viewer.