-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include <Events_InfoMessage.h>
+#include <algorithm>
+
// used only for GUI xml data reading
// LCOV_EXCL_START
Config_DataModelReader::Config_DataModelReader()
std::string aIcon = getProperty(theNode, NODE_ICON);
std::string aEmpty = getProperty(theNode, SHOW_EMPTY);
std::string aFeatures = getProperty(theNode, FOLDER_FEATURES);
- std::string::iterator aIt;
- for (aIt = aEmpty.begin(); aIt != aEmpty.end(); aIt++) {
- (*aIt) = toupper(*aIt);
- }
+
+ std::transform(aEmpty.begin(), aEmpty.end(), aEmpty.begin(),
+ [](char c) { return static_cast<char>(::toupper(c)); });
bool aIsEmpty = (aEmpty == "FALSE")? false : true;
if (isRootReading) {
isRootReading = false;
mySubTypes = getProperty(theNode, GROUP_TYPE);
std::string isResult = getProperty(theNode, LINK_ITEM);
- std::string::iterator aIt;
- for (aIt = isResult.begin(); aIt != isResult.end(); aIt++) {
- (*aIt) = toupper(*aIt);
- }
+ std::transform(isResult.begin(), isResult.end(), isResult.begin(),
+ [](char c) { return static_cast<char>(::toupper(c)); });
myIsResultLink = (isResult == "TRUE")? true : false;
}
}