diff m_option.h @ 25229:4f611a555224

Option print functions may not and do not modify value
author reimar
date Sun, 02 Dec 2007 15:56:38 +0000
parents cc170348a763
children 4129c8cfa742
line wrap: on
line diff
--- a/m_option.h	Sun Dec 02 15:53:33 2007 +0000
+++ b/m_option.h	Sun Dec 02 15:56:38 2007 +0000
@@ -204,7 +204,7 @@
    *  \return An allocated string containing the text value or (void*)-1
    *          on error.
    */
-  char* (*print)(const m_option_t* opt,  void* val);
+  char* (*print)(const m_option_t* opt, const void* val);
 
   /** \name
    *  These functions are called to save/set/restore the status of the
@@ -461,7 +461,7 @@
 
 /// Helper to print options, see \ref m_option_type::print.
 inline static  char*
-m_option_print(const m_option_t* opt,  void* val_ptr) {
+m_option_print(const m_option_t* opt, const void* val_ptr) {
   if(opt->type->print)
     return opt->type->print(opt,val_ptr);
   else