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

@ -293,9 +293,6 @@ void WriteRestart::write(std::string file)
std::string multiname = file;
multiname.replace(multiname.find("%"),1,fmt::format("{}",icluster));
fp = fopen(multiname.c_str(),"wb");
if (fp == NULL)
error->one(FLERR,fmt::format("Cannot open restart file {}",multiname).c_str());
if (filewriter) {
fp = fopen(multiname.c_str(),"wb");