ExternalWarningLevel = VariablesMap["external_warning_level"].as<int>();
}
- catch( po::unknown_option& e )
+ catch( const po::unknown_option& e )
{
Log->print_unknown_cmd_option(e.what());
Log->print_usage(OptDescCmd);
return -1;
}
- catch( po::multiple_occurrences& e )
+ catch( const po::multiple_occurrences& e )
{
Log->print_multiple_cmd_option(e.what());
Log->print_usage(OptDescCmd);
return -1;
}
- catch( po::error& e )
+ catch( const po::error& e )
{
Log->print_error_parsing_cmd(e.what());
Log->print_usage(OptDescCmd);
return -1;
}
}
- catch ( po::unknown_option& e )
+ catch( const po::unknown_option& e )
{
// unknown option in config file detected
service_config_file.close();
Log->print_unknown_service_conf_option(full_filename,e.what());
return -1;
}
- catch( po::multiple_occurrences& e )
+ catch( const po::multiple_occurrences& e )
{
service_config_file.close();
Log->print_multiple_service_conf_option(full_filename,e.what());
return -1;
}
- catch( po::error& e )
+ catch( const po::error& e )
{
service_config_file.close();
Log->print_error_parsing_config_file(full_filename,e.what());
ExternalWarningLevel = VariablesMap["external_warning_level"].as<int>();
}
- catch ( po::unknown_option& e ) // at the moment 04-08-2009 this exception is never thrown :-(
+ catch( const po::unknown_option& e ) // at the moment 04-08-2009 this exception is never thrown :-(
{
// unknown option in main config file detected
main_config_file.close();
Log->print_unknown_main_conf_option(e.what());
return -1;
}
- catch(po::multiple_occurrences& e)
+ catch( const po::multiple_occurrences& e )
{
main_config_file.close();
Log->print_multiple_main_conf_option(full_filename,e.what());