Skip to content

Commit

Permalink
Fix consts
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Nov 21, 2023
1 parent 2c09606 commit bb2228c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/Utils/Parser/ParserUtils.H
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ namespace utils::parser
* \param[in] str name of the parameter to read
* \param[out] val where the value queried and parsed is stored
*/
int query (const amrex::ParmParse& a_pp, std::string const& group, char const * const str, std::string& val);
int query (const amrex::ParmParse& a_pp, std::string const& group, char const * str, std::string& val);

/** Similar to amrex::ParmParse::get, but also supports math expressions for the value.
*
Expand Down Expand Up @@ -518,7 +518,7 @@ namespace utils::parser
* \param[in] str name of the parameter to read
* \param[out] val where the value queried and parsed is stored
*/
void get (const amrex::ParmParse& a_pp, std::string const& group, char const * const str, std::string& val);
void get (amrex::ParmParse const& a_pp, std::string const& group, char const * str, std::string& val);

}

Expand Down
4 changes: 2 additions & 2 deletions Source/Utils/Parser/ParserUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void utils::parser::Store_parserString(
}
}

int utils::parser::query (const amrex::ParmParse& a_pp, std::string const& group, char const * const str, std::string& val)
int utils::parser::query (const amrex::ParmParse& a_pp, std::string const& group, char const * str, std::string& val)
{
const bool is_specified_without_group = a_pp.contains(str);
const std::string grp_str = group + "." + std::string(str);
Expand All @@ -66,7 +66,7 @@ int utils::parser::query (const amrex::ParmParse& a_pp, std::string const& group
}
}

void utils::parser::get (const amrex::ParmParse& a_pp, std::string const& group, char const * const str, std::string& val)
void utils::parser::get (const amrex::ParmParse& a_pp, std::string const& group, char const * str, std::string& val)
{
const bool is_specified_without_group = a_pp.contains(str);
const std::string grp_str = group + "." + std::string(str);
Expand Down

0 comments on commit bb2228c

Please sign in to comment.