X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FConfig%2FConfig_Common.cpp;h=3f8bac413d0624c142994c453a7c5d697b010e26;hb=aa941d4038c5880146ea98adc84e5d02fc729c49;hp=b071546e64e99522a194ce8d1822194373c5a40d;hpb=c4eab94a20a0d93100549a210582d46409fec1cc;p=modules%2Fshaper.git diff --git a/src/Config/Config_Common.cpp b/src/Config/Config_Common.cpp index b071546e6..3f8bac413 100644 --- a/src/Config/Config_Common.cpp +++ b/src/Config/Config_Common.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2021 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -86,7 +86,7 @@ bool isWidgetNode(xmlNodePtr theNode) return false; // it's parent is "feature" or "source" or a page ("box", "case") if(!hasParent(theNode, NODE_FEATURE, NODE_SOURCE, WDG_GROUP, WDG_OPTIONALBOX, - WDG_TOOLBOX_BOX, WDG_RADIOBOX_ITEM, WDG_SWITCH_CASE, NULL)) + WDG_TOOLBOX_BOX, WDG_RADIOBOX_ITEM, WDG_SWITCH_CASE, WDG_FILTER, NULL)) return false; //it should not be a "source" or a "validator" node @@ -208,7 +208,7 @@ bool getParametersInfo(xmlNodePtr theNode, std::string& outPropertyId, std::stringstream aPropStringStream(aPropString); char COMMA_DELIM = ','; std::string aParameter; - while (std::getline(aPropStringStream, aParameter, ',')) { + while (std::getline(aPropStringStream, aParameter, COMMA_DELIM)) { outValidatorParameters.push_back(aParameter); } } @@ -285,6 +285,7 @@ bool getBooleanAttribute(xmlNodePtr theNode, const char* theAttributeName, bool CONFIG_EXPORT std::string normalize(const std::string& theString) { std::string result = theString; - std::transform(result.begin(), result.end(), result.begin(), ::tolower); + std::transform(result.begin(), result.end(), result.begin(), + [](char c) { return static_cast(::tolower(c)); }); return result; }