From: Christophe Bourcier Date: Tue, 5 Dec 2017 15:16:37 +0000 (+0100) Subject: Fix incorrect syntax for Windows compiler X-Git-Tag: V_2.10.0RC~93^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=26a7489eb80cc314d2719eb88c243affff2d7428;p=modules%2Fshaper.git Fix incorrect syntax for Windows compiler --- diff --git a/src/ExchangeAPI/ExchangeAPI_Export.cpp b/src/ExchangeAPI/ExchangeAPI_Export.cpp index 7bbb3ac9b..492479e50 100644 --- a/src/ExchangeAPI/ExchangeAPI_Export.cpp +++ b/src/ExchangeAPI/ExchangeAPI_Export.cpp @@ -88,11 +88,11 @@ void ExchangeAPI_Export::dump(ModelHighAPI_Dumper& theDumper) const aBase->string(ExchangePlugin_ExportFeature::XAO_FILE_PATH_ID())->value(); theDumper << "exportToXAO(" << aDocName << ", '" << tmpXAOFile << "'" ; std::string theAuthor = aBase->string(ExchangePlugin_ExportFeature::XAO_AUTHOR_ID())->value(); - if (not theAuthor.empty()) + if (! theAuthor.empty()) theDumper << ", '" << theAuthor << "'"; std::string theGeometryName = aBase->string(ExchangePlugin_ExportFeature::XAO_GEOMETRY_NAME_ID())->value(); - if (not theGeometryName.empty()) + if (! theGeometryName.empty()) theDumper << ", '" << theGeometryName << "'"; theDumper << ")" << std::endl; } @@ -102,7 +102,7 @@ void ExchangeAPI_Export::dump(ModelHighAPI_Dumper& theDumper) const aBase->selectionList(ExchangePlugin_ExportFeature::SELECTION_LIST_ID()) ; std::string theFileFormat = aBase->string(ExchangePlugin_ExportFeature::FILE_FORMAT_ID())->value(); - if (not theFileFormat.empty()) + if (! theFileFormat.empty()) theDumper << ", '" << theFileFormat << "'"; theDumper << ")" << std::endl; } diff --git a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp index 8b7f59638..f4e30155f 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp +++ b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp @@ -249,7 +249,7 @@ void ExchangePlugin_ExportFeature::exportXAO(const std::string& theFileName) // geometry name std::string aGeometryName = string(ExchangePlugin_ExportFeature::XAO_GEOMETRY_NAME_ID())->value(); - if (aGeometryName.empty() and aBodyCount == 1){ + if (aGeometryName.empty() && aBodyCount == 1) { // get the name from the first result ResultBodyPtr aResultBody = *aResults.begin(); aGeometryName = aResultBody->data()->name();