Salome HOME
[EDF30382] : Synchro mecanism to ease test of extreme situations
[modules/kernel.git] / src / Basics / BasicsGenericDestructor.hxx
index 448019c5f17c21ca7dd8d889c97afddcc45e0a1a..0fec8e901d327b919908c44c7a65fcedd58e4df9 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024  CEA, EDF, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -6,7 +6,7 @@
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -49,7 +49,7 @@
 #define DEVTRACE(msg)
 #endif
 
-#ifdef WNT
+#ifdef WIN32
 #pragma warning(disable:4251) // Warning DLL Interface ...
 #endif
 
@@ -67,7 +67,7 @@
  * This class is utilised with GENERIC_DESTRUCTOR and DESTRUCTOR_OF, 
  * to program automatic deletion of objects at the end of the process, while
  * keeping the possibility of an early destruction, if required. This is used
- * for unit testing and trace mecanism.
+ * for unit testing and trace mechanism.
  */ 
 // ============================================================================
 
@@ -109,7 +109,7 @@ public :
   static std::list<GENERIC_DESTRUCTOR*> *Destructors;
 
   virtual ~GENERIC_DESTRUCTOR() {};
-  static const int Add(GENERIC_DESTRUCTOR &anObject);
+  static int Add(GENERIC_DESTRUCTOR &anObject);
   virtual void operator()(void) = 0;
 };
 
@@ -127,7 +127,7 @@ public :
  * 
  * Note that neither ptrPoint, nor ptrDestruct should be destroyed by the user.
  * 
- * The destruction object must be created dynamically because it suscribes
+ * The destruction object must be created dynamically because it subscribes
  * itself in the list of destruction to be performed at the end of the process.
  */ 
 // ============================================================================