Salome HOME
Updated copyright comment
[modules/shaper.git] / src / XGUI / XGUI_ActiveControlMgr.cpp
index a976b6c3f62b9db19384136514fd81c371431449..f9ce58ad5e5eb66a7a17394cbd31bba93b609f9f 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
@@ -55,7 +55,7 @@ void XGUI_ActiveControlMgr::addSelector(XGUI_ActiveControlSelector* theSelector)
 //********************************************************************
 XGUI_ActiveControlSelector* XGUI_ActiveControlMgr::getSelector(const QString& theType)
 {
-  XGUI_ActiveControlSelector* aSelector;
+  XGUI_ActiveControlSelector* aSelector = 0;
   for (int i = 0, aCount = mySelectors.count(); i < aCount; i++)
   {
     if (mySelectors[i]->getType() != theType)
@@ -111,7 +111,7 @@ void XGUI_ActiveControlMgr::deactivateSelector(XGUI_ActiveControlSelector* theSe
 
   XGUI_ActiveControlSelector* aSelectorToBeActivated = 0;
   for (int i = 0, aCount = mySelectors.count(); i < aCount; i++) {
-    if (!mySelectors[i]->needToBeActiated())
+    if (!mySelectors[i]->needToBeActivated())
       continue;
     aSelectorToBeActivated = mySelectors[i];
     break;