From 26a7489eb80cc314d2719eb88c243affff2d7428 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Tue, 5 Dec 2017 16:16:37 +0100 Subject: [PATCH] Fix incorrect syntax for Windows compiler --- src/ExchangeAPI/ExchangeAPI_Export.cpp | 6 +++--- src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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(); -- 2.30.2