]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PartSetPlugin/PartSetPlugin_Duplicate.h
Salome HOME
Refactoring: static constants are replaced by inline functions in:
[modules/shaper.git] / src / PartSetPlugin / PartSetPlugin_Duplicate.h
index 9bab4d63e4e117e89f5ffd0d01b14e489f4ca4ff..dc64d2aec9a0e8665189403d0705eacd1c7189f6 100644 (file)
@@ -7,9 +7,6 @@
 
 #include "PartSetPlugin_Part.h"
 
-/// the reference to copy: reference to the attribute
-const std::string PART_DUPLICATE_ATTR_REF = "Origin";
-
 /**\class PartSetPlugin_Duplicate
  * \ingroup DataModel
  * \brief Duplicates the active part (not root). Creates a new "part" feature.
@@ -17,6 +14,12 @@ const std::string PART_DUPLICATE_ATTR_REF = "Origin";
 class PartSetPlugin_Duplicate: public PartSetPlugin_Part
 {
 public:
+  /// the reference to copy: reference to the attribute
+  inline static const std::string& DOC_REF()
+  {
+    static const std::string MY_DUPLICATE_ID("Origin");
+    return MY_DUPLICATE_ID;
+  }
   /// Makes a new part, copy of active
   PartSetPlugin_Duplicate();