# HG changeset patch # User Rik # Date 1631664928 25200 # Node ID d0184bad0c079ff68dddd25fafb39c7c1ffac8d1 # Parent 2f39642b90843f14530f7c03fc0c2a60b2b76d59 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. diff -r 2f39642b9084 -r d0184bad0c07 liboctave/util/lo-regexp.cc --- 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,