Changeset 493:17cc20a56ea0 in verona


Ignore:
Timestamp:
May 25, 2012 5:36:17 PM (13 months ago)
Author:
Vadim Lebedev <vadim@…>
Branch:
default
Message:

fix syntax error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • swig/verona.i

    r492 r493  
    8282void make_cxxstr(JNIEnv* jenv, std::string& st, jstring jst) 
    8383{ 
    84    jint len = jenv->GetStringUTFLength(jst); 
     84   int len = (int) jenv->GetStringUTFLength(jst); 
    8585   jint jlen = jenv->GetStringLength(jst); 
    86    st.capacity((size_t)len); 
     86   st.capacity(len); 
    8787   jenv->GetStringUTFRegion(jst, 0, jlen, (char*) st.data()); 
    88    st.resize((size_t)len);       
     88   st.resize(len);       
    8989 
    9090} 
     
    106106     return $null; 
    107107    }  
    108     std::string $1_cxxstr; 
    109     make_cxxstr(jenv, $1_cxxstr, $input); 
    110     $1 = &$1_cxxstr; // in std::string 
     108    make_cxxstr(jenv, $1, $input); // in std::string 
     109   
    111110%} 
    112111 
Note: See TracChangeset for help on using the changeset viewer.