]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
bos #26805: regressions in tests
authorazv <azv@opencascade.com>
Thu, 16 Dec 2021 17:08:41 +0000 (20:08 +0300)
committerazv <azv@opencascade.com>
Thu, 16 Dec 2021 17:08:41 +0000 (20:08 +0300)
Revert several changes after #26446

src/ModelHighAPI/CMakeLists.txt
src/ModelHighAPI/ModelHighAPI_Services.cpp

index 07adac9db8d19c84f9c7306795022b79a9b61202..2d7a4917f409303906b8799b958bb677e1280eaf 100644 (file)
@@ -58,7 +58,6 @@ SET(PROJECT_LIBRARIES
   Locale
   ModelAPI
   ModelGeomAlgo
-  ModuleBase
 )
 
 ADD_DEFINITIONS(-DMODELHIGHAPI_EXPORTS -DWNT)
@@ -88,7 +87,6 @@ INCLUDE_DIRECTORIES(
   ${PROJECT_SOURCE_DIR}/src/Locale
   ${PROJECT_SOURCE_DIR}/src/ModelAPI
   ${PROJECT_SOURCE_DIR}/src/ModelGeomAlgo
-  ${PROJECT_SOURCE_DIR}/src/ModuleBase
   ${PROJECT_SOURCE_DIR}/src/PartSetPlugin
   ${OpenCASCADE_INCLUDE_DIR}
 )
index 763798c8b72bb35dcdc2f8b60b64ba5f24112ece..09dea983c9743077e5e0a2631f7588b8d54b8e49 100644 (file)
@@ -26,8 +26,6 @@
 #include <ModelAPI_ResultConstruction.h>
 #include <ModelAPI_Events.h>
 
-#include <ModuleBase_Tools.h>
-
 #include <cmath>
 #include <sstream>
 
@@ -108,9 +106,8 @@ void begin()
     aNbTransactions = aNbUndo;
     ++aTransactionID;
   }
-  static std::string anOperationPrefix(ModuleBase_Tools::translate("", "Operation").toStdString());
   std::ostringstream aTransactionName;
-  aTransactionName << anOperationPrefix << "_" << aTransactionID;
+  aTransactionName << "Operation_" << aTransactionID;
   ModelAPI_Session::get()->startOperation(aTransactionName.str());
 }