diff main/database/src/converters_arr_comp.cc @ 11715:ed5361361a0f octave-forge

Added converter for type 'record'. Some 'const' corrections.
author i7tiol
date Mon, 20 May 2013 08:02:13 +0000
parents 7198ecd313b5
children 2257648e8ce1
line wrap: on
line diff
--- a/main/database/src/converters_arr_comp.cc	Mon May 20 07:12:42 2013 +0000
+++ b/main/database/src/converters_arr_comp.cc	Mon May 20 08:02:13 2013 +0000
@@ -477,10 +477,10 @@
 }
 
 int to_octave_bin_array (const octave_pq_connection &conn,
-                         char *v, octave_value &ov, int nb,
+                         const char *v, octave_value &ov, int nb,
                          oct_pq_conv_t *conv)
 {
-  char *p = v;
+  const char *p = v;
 
   // ndim
   OCT_PQ_DECL_GET_INT32(ndim, p, int32_t)
@@ -562,10 +562,10 @@
 }
 
 int to_octave_bin_composite (const octave_pq_connection &conn,
-                             char *v, octave_value &ov, int nb,
+                             const char *v, octave_value &ov, int nb,
                              oct_pq_conv_t *conv)
 {
-  char *p = v;
+  const char *p = v;
 
   // ncols
   OCT_PQ_DECL_GET_INT32(nl, p, int32_t)
@@ -630,7 +630,7 @@
 
 
 int to_octave_str_array (const octave_pq_connection &conn,
-                         char *v, octave_value &ov, int nb,
+                         const char *v, octave_value &ov, int nb,
                          oct_pq_conv_t *conv)
 {
   // not implemented
@@ -641,7 +641,7 @@
 }
 
 int to_octave_str_composite (const octave_pq_connection &conn,
-                             char *v, octave_value &ov, int nb,
+                             const char *v, octave_value &ov, int nb,
                              oct_pq_conv_t *conv)
 {
   // not implemented