X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Validator.cpp;h=c2c994da9cd65dc1b194115c8250aa524760ae1c;hb=2f89053146098946372bae4d1a3fe2e5272ab9e2;hp=d8967d0e69d2bfa180c7a10b77ccf4766bb6a41b;hpb=a7f44a41bdf29e7bd978ff3b8c8bd514d1223be7;p=modules%2Fshaper.git diff --git a/src/Model/Model_Validator.cpp b/src/Model/Model_Validator.cpp index d8967d0e6..c2c994da9 100644 --- a/src/Model/Model_Validator.cpp +++ b/src/Model/Model_Validator.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: Model_Validator.cpp // Created: 2 Jul 2014 // Author: Mikhail PONIKAROV @@ -88,7 +90,7 @@ void Model_ValidatorsFactory::validators(const std::string& theFeatureID, } } } - addDefaultValidators(theResult); + addDefaultValidators(theResult, theArguments); } void Model_ValidatorsFactory::validators(const std::string& theFeatureID, @@ -132,13 +134,15 @@ const ModelAPI_Validator* Model_ValidatorsFactory::validator(const std::string& return NULL; } -void Model_ValidatorsFactory::addDefaultValidators(std::list& theValidators) const +void Model_ValidatorsFactory::addDefaultValidators(std::list& theValidators, + std::list >& theArguments) const { const static std::string kDefaultId = "Model_FeatureValidator"; std::map::const_iterator it = myIDs.find(kDefaultId); if(it == myIDs.end()) return; theValidators.push_back(it->second); + theArguments.push_back(std::list()); } bool Model_ValidatorsFactory::validate(const std::shared_ptr& theFeature) const