Salome HOME
Add checking that object is used before the delete operation
[modules/shaper.git] / src / ModelAPI / ModelAPI_ResultBody.h
index debc96d3e4f281d4a1f0c344c6b6b6830d9e257d..c2eff7efcfa22b68d049d9b235045d75860b7a4f 100644 (file)
@@ -2,8 +2,8 @@
 // Created:     07 Jul 2014
 // Author:      Mikhail PONIKAROV
 
-#ifndef ModelAPI_ResultBody_HeaderFile
-#define ModelAPI_ResultBody_HeaderFile
+#ifndef ModelAPI_ResultBody_H_
+#define ModelAPI_ResultBody_H_
 
 #include "ModelAPI_Result.h"
 #include <GeomAPI_Shape.h>
  */
 class ModelAPI_ResultBody : public ModelAPI_Result
 {
-public:
+ public:
   /// Returns the group identifier of this result
-  virtual std::string groupName() {
+  virtual std::string groupName()
+  {
     return group();
   }
 
   /// Returns the group identifier of this result
   static std::string group()
-  {static std::string MY_GROUP = "Bodies"; return MY_GROUP;}
+  {
+    static std::string MY_GROUP = "Bodies";
+    return MY_GROUP;
+  }
 
   /// Stores the shape (called by the execution method).
   virtual void store(const boost::shared_ptr<GeomAPI_Shape>& theShape) = 0;
@@ -36,13 +40,16 @@ public:
   virtual boost::shared_ptr<GeomAPI_Shape> shape() = 0;
 
   /// To virtually destroy the fields of successors
-  virtual ~ModelAPI_ResultBody() {}
+  virtual ~ModelAPI_ResultBody()
+  {
+  }
 
-protected:
+ protected:
   /// Use plugin manager for features creation: this method is 
   /// defined here only for SWIG-wrapping
   ModelAPI_ResultBody()
-  {}
+  {
+  }
 };
 
 //! Pointer on feature object