changeset 15356:5f3a69a309a7

fix decl of mexPutVariable * mexproto.h, mex.cc (mexPutVariable): Declare mxArray arg as const. * mxarray.in.h, mex.cc (mxArray::as_octave_value (const mxArray*)): Declare mxArray arg as const.
author John W. Eaton <jwe@octave.org>
date Tue, 11 Sep 2012 13:48:46 -0400
parents 9a8dbd6b6b20
children 93dff6435fe1
files libinterp/interp-core/mex.cc libinterp/interp-core/mxarray.in.h
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/interp-core/mex.cc
+++ b/libinterp/interp-core/mex.cc
@@ -1894,7 +1894,7 @@
 }
 
 octave_value
-mxArray::as_octave_value (mxArray *ptr)
+mxArray::as_octave_value (const mxArray *ptr)
 {
   return ptr ? ptr->as_octave_value () : octave_value (Matrix ());
 }
@@ -3214,7 +3214,7 @@
 }
 
 int
-mexPutVariable (const char *space, const char *name, mxArray *ptr)
+mexPutVariable (const char *space, const char *name, const mxArray *ptr)
 {
   if (! ptr)
     return 1;
--- a/libinterp/interp-core/mxarray.in.h
+++ b/libinterp/interp-core/mxarray.in.h
@@ -486,7 +486,7 @@
     return retval;
   }
 
-  static octave_value as_octave_value (mxArray *ptr);
+  static octave_value as_octave_value (const mxArray *ptr);
 
 protected: