mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-07 15:03:01 -06:00
Avoid shadowing warning, and simplify using transform().
Minor detail: will use ::toupper() rather than std::toupper() overloads, only a problem if underlying character type of string type changes.
This commit is contained in:
parent
818e0d6faa
commit
f7ef4c9724
@ -124,9 +124,8 @@ public:
|
||||
rawCaseName = baseName.substr(0, i);
|
||||
|
||||
// transform the result to ALL_UPPERCASE
|
||||
caseName_ = "";
|
||||
for (size_t i = 0; i < rawCaseName.size(); ++i)
|
||||
caseName_ += std::toupper(rawCaseName[i]);
|
||||
caseName_ = rawCaseName;
|
||||
std::transform(caseName_.begin(), caseName_.end(), caseName_.begin(), ::toupper);
|
||||
|
||||
if (myRank == 0)
|
||||
std::cout << "Reading the deck file '" << fileName << "'" << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user