Mark the std::vector wrappers for the C-style arrays as const.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@838 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
998de54048
commit
c4b8389d6e
|
@ -19,7 +19,7 @@
|
||||||
%define ASSIMP_ARRAY(CLASS, TYPE, NAME, LENGTH)
|
%define ASSIMP_ARRAY(CLASS, TYPE, NAME, LENGTH)
|
||||||
%newobject CLASS::NAME;
|
%newobject CLASS::NAME;
|
||||||
%extend CLASS {
|
%extend CLASS {
|
||||||
std::vector<TYPE > *NAME() {
|
std::vector<TYPE > *NAME() const {
|
||||||
std::vector<TYPE > *result = new std::vector<TYPE >;
|
std::vector<TYPE > *result = new std::vector<TYPE >;
|
||||||
result->reserve(LENGTH);
|
result->reserve(LENGTH);
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
%define ASSIMP_POINTER_ARRAY(CLASS, TYPE, NAME, LENGTH)
|
%define ASSIMP_POINTER_ARRAY(CLASS, TYPE, NAME, LENGTH)
|
||||||
%newobject CLASS::NAME;
|
%newobject CLASS::NAME;
|
||||||
%extend CLASS {
|
%extend CLASS {
|
||||||
std::vector<TYPE *> *NAME() {
|
std::vector<TYPE *> *NAME() const {
|
||||||
std::vector<TYPE *> *result = new std::vector<TYPE *>;
|
std::vector<TYPE *> *result = new std::vector<TYPE *>;
|
||||||
result->reserve(LENGTH);
|
result->reserve(LENGTH);
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
%define ASSIMP_POINTER_ARRAY_ARRAY(CLASS, TYPE, NAME, OUTER_LENGTH, INNER_LENGTH)
|
%define ASSIMP_POINTER_ARRAY_ARRAY(CLASS, TYPE, NAME, OUTER_LENGTH, INNER_LENGTH)
|
||||||
%newobject CLASS::NAME;
|
%newobject CLASS::NAME;
|
||||||
%extend CLASS {
|
%extend CLASS {
|
||||||
std::vector<std::vector<TYPE *> > *NAME() {
|
std::vector<std::vector<TYPE *> > *NAME() const {
|
||||||
std::vector<std::vector<TYPE *> > *result = new std::vector<std::vector<TYPE *> >;
|
std::vector<std::vector<TYPE *> > *result = new std::vector<std::vector<TYPE *> >;
|
||||||
result->reserve(OUTER_LENGTH);
|
result->reserve(OUTER_LENGTH);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue