Skip to content

Commit e727197

Browse files
authored
ParmParse cpp no const (#4769)
Already in the header file: do not use const for fundamental types. Not strictly needed and legal C++, just slightly inconsistent.
1 parent 7834eb8 commit e727197

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Src/Base/AMReX_ParmParse.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ ParmParse::query (std::string_view name,
13991399

14001400
void
14011401
ParmParse::add (std::string_view name, // NOLINT(readability-make-member-function-const)
1402-
const bool val)
1402+
bool val)
14031403
{
14041404
saddval(prefixedName(name),val);
14051405
}
@@ -1441,7 +1441,7 @@ ParmParse::query (std::string_view name,
14411441

14421442
void
14431443
ParmParse::add (std::string_view name, // NOLINT(readability-make-member-function-const)
1444-
const int val)
1444+
int val)
14451445
{
14461446
saddval(prefixedName(name),val);
14471447
}
@@ -1529,7 +1529,7 @@ ParmParse::query (std::string_view name,
15291529

15301530
void
15311531
ParmParse::add (std::string_view name, // NOLINT(readability-make-member-function-const)
1532-
const long val)
1532+
long val)
15331533
{
15341534
saddval(prefixedName(name),val);
15351535
}
@@ -1615,7 +1615,7 @@ ParmParse::query (std::string_view name,
16151615

16161616
void
16171617
ParmParse::add (std::string_view name, // NOLINT(readability-make-member-function-const)
1618-
const long long val)
1618+
long long val)
16191619
{
16201620
saddval(prefixedName(name),val);
16211621
}
@@ -1702,7 +1702,7 @@ ParmParse::query (std::string_view name,
17021702

17031703
void
17041704
ParmParse::add (std::string_view name, // NOLINT(readability-make-member-function-const)
1705-
const float val)
1705+
float val)
17061706
{
17071707
saddval(prefixedName(name),val);
17081708
}
@@ -1791,7 +1791,7 @@ ParmParse::query (std::string_view name,
17911791

17921792
void
17931793
ParmParse::add (std::string_view name, // NOLINT(readability-make-member-function-const)
1794-
const double val)
1794+
double val)
17951795
{
17961796
saddval(prefixedName(name),val);
17971797
}

0 commit comments

Comments
 (0)