Salome HOME
Updated copyright comment
[modules/shaper.git] / src / XGUI / XGUI_ActionsMgr.cpp
index 2c2b87f4c8d7df3b455baf1f843369b8c135c28c..aa05544afe020c19395efa03ecdb88e0cc9a999e 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2024  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 #include <ModuleBase_SelectionValidator.h>
 #include <ModuleBase_Tools.h>
 
-
 #include <QAction>
 #include <QMainWindow>
 
+#ifdef WIN32
+#pragma warning(disable : 4456) // for nested foreach
+#endif
+
 #ifdef _DEBUG
 #include <iostream>
 #include <QDebug>
@@ -390,7 +393,9 @@ void XGUI_ActionsMgr::updateByDocumentKind()
 {
   std::string aStdDocKind = ModelAPI_Session::get()->activeDocument()->kind();
   QString aDocKind = QString::fromStdString(aStdDocKind);
+#ifdef HAVE_SALOME
   XGUI_Workshop* aWorkshop = static_cast<XGUI_Workshop*>(parent());
+#endif
   foreach(QAction* eachAction, myActions.values()) {
     QString aCmdDocKind;
 #ifdef HAVE_SALOME