simplify code by appling varargs messages and warnings
This commit is contained in:
@ -72,7 +72,7 @@ void DumpLocalGZ::openfile()
|
||||
++numfiles;
|
||||
} else {
|
||||
if (remove(nameslist[fileidx]) != 0) {
|
||||
error->warning(FLERR, fmt::format("Could not delete {}", nameslist[fileidx]));
|
||||
error->warning(FLERR, "Could not delete {}", nameslist[fileidx]);
|
||||
}
|
||||
delete[] nameslist[fileidx];
|
||||
nameslist[fileidx] = utils::strdup(filecurrent);
|
||||
|
||||
Reference in New Issue
Block a user