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

use again a bit stricter types, and use const reference for some JVMLinkObjects (instead of new and delete objects)

File:
1 edited

Legend:

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

    r7813 r7818  
    3939 
    4040// Constructor for single primitives 
    41 JVMLinkObject::JVMLinkObject(const std::string& name, Type type, void* data) { 
     41JVMLinkObject::JVMLinkObject(const std::string& name, Type type, const void* data) { 
    4242        this->name = name; 
    4343        this->size = getSize(type); 
     
    4848 
    4949// Constructor for arrays 
    50 JVMLinkObject::JVMLinkObject(const std::string& name, Type type, int length, void* data) { 
     50JVMLinkObject::JVMLinkObject(const std::string& name, Type type, int length, const void* data) { 
    5151        this->name = name; 
    5252        this->size = getSize(type); 
Note: See TracChangeset for help on using the changeset viewer.