diff libinterp/parse-tree/lex.h @ 26345:7c6ff9b36302 stable

lex.h: Fix static analyzer detected issues (bug #55347). * lex.h (reset): Make this an alias for clear() as the function body is the same.
author Rik <rik@octave.org>
date Tue, 01 Jan 2019 17:58:53 -0800
parents da2bbcf1fbcd
children 00f796120a6d
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.h	Tue Jan 01 10:39:04 2019 -0800
+++ b/libinterp/parse-tree/lex.h	Tue Jan 01 17:58:53 2019 -0800
@@ -113,11 +113,8 @@
 
       ~bbp_nesting_level (void) = default;
 
-      void reset (void)
-      {
-        while (! m_context.empty ())
-          m_context.pop ();
-      }
+      // Alias for clear function.
+      void reset (void) { clear (); }
 
       void bracket (void) { m_context.push (BRACKET); }