Ignore:
Timestamp:
11/24/11 14:45:29 (8 years ago)
Author:
mario
Message:

added minimal changes to compile on a POSIX like OS (mainly Linux)

File:
1 edited

Legend:

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

    r3834 r7812  
    3434#include "JVMLinkObject.h" 
    3535 
    36 JVMLinkObject::JVMLinkObject(CString name) { 
     36JVMLinkObject::JVMLinkObject(std::string name) { 
    3737        this->name = name; 
    3838} 
    3939 
    4040// Constructor for single primitives 
    41 JVMLinkObject::JVMLinkObject(CString name, Type type, void* data) { 
     41JVMLinkObject::JVMLinkObject(std::string name, Type type, void* data) { 
    4242        this->name = name; 
    4343        this->size = getSize(type); 
     
    4848 
    4949// Constructor for arrays 
    50 JVMLinkObject::JVMLinkObject(CString name, Type type, int length, void* data) { 
     50JVMLinkObject::JVMLinkObject(std::string name, Type type, int length, void* data) { 
    5151        this->name = name; 
    5252        this->size = getSize(type); 
     
    7272} 
    7373 
    74 CString* JVMLinkObject::getDataAsString() { 
    75         CString* retval = (CString*) data; 
     74std::string* JVMLinkObject::getDataAsString() { 
     75        std::string* retval = (std::string*) data; 
    7676        return retval; 
    7777} 
    7878 
    79 CString* JVMLinkObject::getDataAsStringArray() { 
    80         CString* retval = (CString*) data; 
     79std::string* JVMLinkObject::getDataAsStringArray() { 
     80        std::string* retval = (std::string*) data; 
    8181        return retval; 
    8282} 
Note: See TracChangeset for help on using the changeset viewer.