Skip to content
Snippets Groups Projects
Commit 21f9d5b0 authored by Lars Bilke's avatar Lars Bilke
Browse files

The 'strcmp' function returns 0 if corresponding strings are equal.

parent 3f9a12b3
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ std::vector<GeoLib::Point*> *RapidStnInterface::readStationFile(const std::strin
doc.parse<0>(buffer);
// parse content
if (std::string(doc.first_node()->name()).compare("OpenGeoSysSTN"))
if (std::string(doc.first_node()->name()).compare("OpenGeoSysSTN") != 0)
{
std::cout << "XmlStnInterface::readFile() - Unexpected XML root." << std::endl;
return NULL;
......
......@@ -58,7 +58,7 @@ bool TetGenInterface::readTetGenGeometry (std::string const& geo_fname,
return false;
}
std::string ext (BaseLib::getFileExtension(geo_fname));
if (ext.compare("smesh"))
if (ext.compare("smesh") != 0)
{
ERR ("TetGenInterface::readTetGenPoly() - unknown file type (only *.smesh are supported).");
return false;
......
......@@ -340,7 +340,7 @@ int XmlStnInterface::rapidReadFile(const std::string &fileName)
doc.parse<0>(buffer);
// parse content
if (std::string(doc.first_node()->name()).compare("OpenGeoSysSTN"))
if (std::string(doc.first_node()->name()).compare("OpenGeoSysSTN") != 0)
{
ERR("XmlStnInterface::readFile() - Unexpected XML root.");
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment