Mercurial > octave
diff libinterp/parse-tree/oct-parse.in.yy @ 23798:771310737137
Use C++11 nullptr rather than 0 in code (bug #51565).
* oct-errno.in.cc: Replace 0 with nullptr for final entry of errno_codes[].
Remove extra comma from definitions of errno_struct.
* mk-errno-list.sh: Stop printing extra comma in errno output.
* oct-parse.in.yy, fCMatrix.cc:
Use C++11 nullptr rather than 0 in code
author | Rik <rik@octave.org> |
---|---|
date | Thu, 27 Jul 2017 08:32:17 -0700 |
parents | 4f12819a634f |
children | 6925c8d2cd87 |
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.in.yy Wed Jul 26 21:09:19 2017 -0700 +++ b/libinterp/parse-tree/oct-parse.in.yy Thu Jul 27 08:32:17 2017 -0700 @@ -1897,7 +1897,7 @@ YYUSE ($4); if (! ($$ = parser.make_classdef_events_block - ($1, $3, 0, $5, $2))) + ($1, $3, nullptr, $5, $2))) { // make_classdef_events_block deleted $3. YYABORT; @@ -2796,7 +2796,7 @@ token *end_tok, comment_list *lc) { - tree_command *retval = 0; + tree_command *retval = nullptr; maybe_warn_assign_as_truth_value (expr);