Mercurial > octave
changeset 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 | acfd683ea00b |
children | fd890481c408 |
files | libinterp/parse-tree/lex.h |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
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); }