diff libinterp/corefcn/syminfo.h @ 26658:fc7d72df08fa

add const qualifiers to two symbol_info methods * syminfo.h, syminfo.cc (symbol_info::parse_whos_line_format, symbol_info::display): Now const methods.
author John W. Eaton <jwe@octave.org>
date Sat, 26 Jan 2019 15:36:16 +0000
parents be909a861e52
children 8fbda39ca075
line wrap: on
line diff
--- a/libinterp/corefcn/syminfo.h	Sat Jan 26 15:35:09 2019 +0000
+++ b/libinterp/corefcn/syminfo.h	Sat Jan 26 15:36:16 2019 +0000
@@ -109,13 +109,13 @@
     void print_descriptor (std::ostream& os,
                            const std::list<whos_parameter> params) const;
 
-    void display (std::ostream& os, const std::string& format);
+    void display (std::ostream& os, const std::string& format) const;
 
     // Parse FORMAT, and return a parameter list,
     // containing all information needed to print the given
     // attributes of the symbols.
     std::list<whos_parameter>
-    parse_whos_line_format (const std::string& format);
+    parse_whos_line_format (const std::string& format) const;
   };
 }