Mods to remove warnings that mono-1.1.7 produces

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7179 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-05-06 22:47:32 +00:00
commit 015c75b224
2 changed files with 6 additions and 6 deletions

View file

@ -568,7 +568,7 @@ $1 = &temp; %}
}
internal static HandleRef getCPtr($csclassname obj) {
return (obj == null) ? IntPtr.Zero : obj.swigCPtr;
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
%}
@ -613,7 +613,7 @@ $1 = &temp; %}
swigCMemOwn = false;
$imcall;
}
swigCPtr = new Handle(null, IntPtr.Zero);
swigCPtr = new HandleRef(null, IntPtr.Zero);
GC.SuppressFinalize(this);
base.Dispose();
}