From edd82d41f24469424818f949511bcbf4bfc2ae78 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 18 Jul 2007 21:06:55 +0000 Subject: [PATCH] corrections for last commit git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9867 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/csharp/std_vector.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/csharp/std_vector.i b/Lib/csharp/std_vector.i index 15797d2fa..a04831f75 100755 --- a/Lib/csharp/std_vector.i +++ b/Lib/csharp/std_vector.i @@ -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"); }