mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 12:35:29 -04:00
Reduce number of string concats with fmt::format
This commit is contained in:
parent
c9120bafbc
commit
b6276ea9e4
4 changed files with 15 additions and 14 deletions
|
|
@ -114,7 +114,7 @@ void read_plots_xml()
|
|||
// Check if plots.xml exists
|
||||
std::string filename = settings::path_input + "plots.xml";
|
||||
if (!file_exists(filename)) {
|
||||
fatal_error("Plots XML file '" + filename + "' does not exist!");
|
||||
fatal_error(fmt::format("Plots XML file '{}' does not exist!", filename));
|
||||
}
|
||||
|
||||
write_message("Reading plot XML file...", 5);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue