Skip to content
Snippets Groups Projects
Commit b6e2cd92 authored by Rosen Matev's avatar Rosen Matev :sunny: Committed by Marco Clemencic
Browse files

Change default parsing error policy to Exception

parent 82b26efb
No related branches found
No related tags found
1 merge request!1265Change default parsing error policy to Exception
......@@ -322,7 +322,7 @@ const PropertyBase* Gaudi::Utils::getProperty( const std::vector<const PropertyB
// ============================================================================
StatusCode Gaudi::Utils::setProperty( IProperty* component, const std::string& name, const char* value,
const std::string& doc ) {
return Gaudi::Utils::setProperty( component, name, std::string{value}, doc );
return Gaudi::Utils::setProperty( component, name, std::string{ value }, doc );
}
// ============================================================================
/* the full specialization of the
......@@ -444,7 +444,7 @@ StatusCode Gaudi::Utils::setProperty( IInterface* component, const std::string&
// ============================================================================
StatusCode Gaudi::Utils::setProperty( IInterface* component, const std::string& name, const char* value,
const std::string& doc ) {
return setProperty( component, name, std::string{value}, doc );
return setProperty( component, name, std::string{ value }, doc );
}
// ============================================================================
/* simple function to set the property of the given object from another
......@@ -515,7 +515,7 @@ Gaudi::Details::WeakPropertyRef::operator std::string() const {
namespace Gaudi::Details::Property {
namespace {
#ifndef GAUDI_PROPERTY_PARSING_ERROR_DEFAULT_POLICY
# define GAUDI_PROPERTY_PARSING_ERROR_DEFAULT_POLICY Ignore
# define GAUDI_PROPERTY_PARSING_ERROR_DEFAULT_POLICY Exception
#endif
ParsingErrorPolicy g_parsingErrorPolicy = ParsingErrorPolicy::GAUDI_PROPERTY_PARSING_ERROR_DEFAULT_POLICY;
} // namespace
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment