Mod: use empty

This commit is contained in:
berniev
2022-08-06 02:29:31 +10:00
committed by wwmayer
parent 22dcf5866f
commit 53ba98d636
134 changed files with 419 additions and 419 deletions

View File

@@ -1560,7 +1560,7 @@ void FemMesh::readNastran(const std::string &Filename)
do
{
std::getline(inputfile,line1);
if (line1.size() == 0)
if (line1.empty())
continue;
if (line1.find(',') != std::string::npos)
nastranFormat = Format::FreeField;
@@ -1650,7 +1650,7 @@ void FemMesh::readNastran95(const std::string &Filename)
NastranElementPtr elem;
std::getline(inputfile, line1);
//cout << line1 << endl;
if (line1.size() == 0)
if (line1.empty())
continue;
tcard = line1.substr(0, 8).c_str();
@@ -2199,7 +2199,7 @@ void FemMesh::writeABAQUS(const std::string &Filename, int elemParam, bool group
anABAQUS_Output << std::endl;
}
}
if (elsetname == "")
if (elsetname.empty())
elsetname += "Efaces";
else
elsetname += ", Efaces";
@@ -2219,7 +2219,7 @@ void FemMesh::writeABAQUS(const std::string &Filename, int elemParam, bool group
anABAQUS_Output << std::endl;
}
}
if (elsetname == "")
if (elsetname.empty())
elsetname += "Eedges";
else
elsetname += ", Eedges";