From 8285a9fd77e51e5e3258232b688e47ec27fb7377 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Sat, 24 Jun 2023 09:45:03 +0530 Subject: [PATCH] MDSAuthCaps: use string and vector directly Since std::string and std::vector are brought into the current namespace at the beginning of MDSAuthCaps.cc, write "string" and "vector" instead of "std::string" and "std::vector" respectively. Signed-off-by: Rishabh Dave (cherry picked from commit 34f2243b8c89ed13760eb55994bef5f1a679ab24) Conflicts: src/mds/MDSAuthCaps.cc: some code using string/vector was deleted by a different Reef backport due to which some patches from this commit weren't applicable. --- src/mds/MDSAuthCaps.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mds/MDSAuthCaps.cc b/src/mds/MDSAuthCaps.cc index 7f16c954368..e4287072475 100644 --- a/src/mds/MDSAuthCaps.cc +++ b/src/mds/MDSAuthCaps.cc @@ -113,11 +113,11 @@ struct MDSCapParser : qi::grammar qi::rule root_squash; qi::rule capspec; qi::rule uid; - qi::rule() > uintlist; - qi::rule() > gidlist; + qi::rule() > uintlist; + qi::rule() > gidlist; qi::rule match; qi::rule grant; - qi::rule()> grants; + qi::rule()> grants; qi::rule mdscaps; }; @@ -356,7 +356,7 @@ bool MDSAuthCaps::parse(string_view str, ostream *err) if (err) *err << "mds capability parse failed, stopped at '" - << std::string(iter, end) + << string(iter, end) << "' of '" << str << "'"; return false; } -- 2.47.3