@@ -85,8 +85,7 @@ namespace ariles2
85
85
std::string file_name_default = file_name;
86
86
config_ifs.open (file_name_default.c_str ());
87
87
}
88
- CPPUT_PERSISTENT_ASSERT (
89
- config_ifs.good (), std::string (" Could not open configuration file: " ) + file_name.c_str ());
88
+ CPPUT_PERSISTENT_ASSERT (config_ifs.good (), " Could not open configuration file: " , file_name.c_str ());
90
89
}
91
90
92
91
@@ -419,9 +418,7 @@ namespace ariles2
419
418
}
420
419
catch (const std::exception &e)
421
420
{
422
- CPPUT_THROW (
423
- std::string (" Failed to parse entry <" ) + convertSubtreeToString (subtree) + " > || "
424
- + e.what ());
421
+ CPPUT_THROW (" Failed to parse entry <" , convertSubtreeToString (subtree), " > || " , e.what ());
425
422
}
426
423
427
424
this ->endRoot (subtree);
@@ -430,8 +427,9 @@ namespace ariles2
430
427
{
431
428
CPPUT_PERSISTENT_ASSERT (
432
429
param.allow_missing_entries_ ,
433
- std::string (" Configuration file does not contain entry '" ) + convertSubtreeToString (subtree)
434
- + " '." );
430
+ " Configuration file does not contain entry '" ,
431
+ convertSubtreeToString (subtree),
432
+ " '." );
435
433
}
436
434
}
437
435
@@ -455,7 +453,7 @@ namespace ariles2
455
453
}
456
454
catch (const std::exception &e)
457
455
{
458
- CPPUT_THROW (std::string ( " Failed to parse entry <" ) + name + " > || " + e.what ());
456
+ CPPUT_THROW (" Failed to parse entry <" , name, " > || " , e.what ());
459
457
}
460
458
461
459
this ->endMapEntry ();
@@ -465,7 +463,9 @@ namespace ariles2
465
463
{
466
464
CPPUT_PERSISTENT_ASSERT (
467
465
not override_missing_entries_locally and param.allow_missing_entries_ ,
468
- std::string (" Configuration file does not contain entry '" ) + name + " '." );
466
+ " Configuration file does not contain entry '" ,
467
+ name,
468
+ " '." );
469
469
return (false );
470
470
}
471
471
}
0 commit comments