Skip to content
Snippets Groups Projects
Commit 9c38c32c authored by Marco Clemencic's avatar Marco Clemencic
Browse files

fixup! Rewired JobOptionsSvc in terms of a simple map string->string

parent 0e3526bc
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ StatusCode JobOptionsSvc::setMyProperties( const std::string& client, IProperty*
for ( const auto& elem : m_options ) {
boost::string_ref key = elem.first;
if ( key.starts_with( key_base ) ) {
const std::string name = static_cast<std::string>( key.substr( key_base_size ) );
const auto name = static_cast<std::string>( key.substr( key_base_size ) );
// \fixme this has to change if we want nested properties
// if ( myInt->hasProperty( name ) ) {
if ( name.find( '.' ) == std::string::npos ) {
......@@ -132,7 +132,7 @@ std::vector<std::string> JobOptionsSvc::getClients() const
const auto pos = elem.first.rfind( '.' );
if ( pos != std::string::npos ) clients.emplace( elem.first, 0, pos );
}
return std::vector<std::string>{begin( clients ), end( clients )};
return {begin( clients ), end( clients )};
}
void JobOptionsSvc::dump( const std::string& file, const gp::Catalog& catalog ) const
......
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