corrections for last commit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1160c80a01
commit
edd82d41f2
1 changed files with 2 additions and 2 deletions
|
|
@ -212,7 +212,7 @@
|
|||
}
|
||||
void setitem(int index, const value_type& val) throw (std::out_of_range) {
|
||||
if (index>=0 && index<(int)self->size())
|
||||
(*self)[index] = value;
|
||||
(*self)[index] = val;
|
||||
else
|
||||
throw std::out_of_range("index");
|
||||
}
|
||||
|
|
@ -232,7 +232,7 @@
|
|||
}
|
||||
void Insert(int index, const value_type& x) throw (std::out_of_range) {
|
||||
if (index>=0 && index<(int)self->size()+1)
|
||||
self->insert(self->begin()+index, value);
|
||||
self->insert(self->begin()+index, x);
|
||||
else
|
||||
throw std::out_of_range("index");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue