remove .c_str() in several places because it is no longer neede

This commit is contained in:
Axel Kohlmeyer
2020-06-05 12:11:54 -04:00
parent c7ef89dc4a
commit 04d7eacc2f
5 changed files with 17 additions and 19 deletions

View File

@ -137,7 +137,7 @@ void lammps_open(int argc, char **argv, MPI_Comm communicator, void **ptr)
*ptr = (void *) lmp;
}
catch(LAMMPSException & e) {
fprintf(stderr, "LAMMPS Exception: %s", e.message.c_str());
fmt::print(stderr, "LAMMPS Exception: {}", e.message);
*ptr = (void *) NULL;
}
#else
@ -172,7 +172,7 @@ void lammps_open_no_mpi(int argc, char **argv, void **ptr)
*ptr = (void *) lmp;
}
catch(LAMMPSException & e) {
fprintf(stderr, "LAMMPS Exception: %s", e.message.c_str());
fmt::print(stderr, "LAMMPS Exception: {}", e.message);
*ptr = (void*) NULL;
}
#else