mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -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);
|
rawCaseName = baseName.substr(0, i);
|
||||||
|
|
||||||
// transform the result to ALL_UPPERCASE
|
// transform the result to ALL_UPPERCASE
|
||||||
caseName_ = "";
|
caseName_ = rawCaseName;
|
||||||
for (size_t i = 0; i < rawCaseName.size(); ++i)
|
std::transform(caseName_.begin(), caseName_.end(), caseName_.begin(), ::toupper);
|
||||||
caseName_ += std::toupper(rawCaseName[i]);
|
|
||||||
|
|
||||||
if (myRank == 0)
|
if (myRank == 0)
|
||||||
std::cout << "Reading the deck file '" << fileName << "'" << std::endl;
|
std::cout << "Reading the deck file '" << fileName << "'" << std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user