Mercurial > octave
changeset 30178:d0184bad0c07
maint: lo-regexp.cc: Use C++ named struct declaration rather than C-style typedef.
* lo-regexp.cc: Use C++ named struct declaration for "rep_token_t" rather than
C-style typedef.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 14 Sep 2021 17:15:28 -0700 |
parents | 2f39642b9084 |
children | 5bef5b36747e |
files | liboctave/util/lo-regexp.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/util/lo-regexp.cc Tue Sep 14 17:11:55 2021 -0700 +++ b/liboctave/util/lo-regexp.cc Tue Sep 14 17:15:28 2021 -0700 @@ -458,11 +458,11 @@ } // Declare rep_token_t used in processing replacement string - typedef struct + struct rep_token_t { std::size_t pos; int num; - } rep_token_t; + }; std::string regexp::replace (const std::string& buffer,