Salome HOME
Fix incorrect syntax for Windows compiler
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Tue, 5 Dec 2017 15:16:37 +0000 (16:16 +0100)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Tue, 5 Dec 2017 15:16:37 +0000 (16:16 +0100)
src/ExchangeAPI/ExchangeAPI_Export.cpp
src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp

index 7bbb3ac9b64f53d89352daafb22e8d8fb6cdd992..492479e5065ea40d9e929dfb58f4df4104880d7e 100644 (file)
@@ -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;
   }
index 8b7f59638cf9edba2b1703e94b083a35d36b98f1..f4e30155fba5e4a1ac1fb363f58e64faa092b37e 100644 (file)
@@ -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();