]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Macros.h
...
[cpPlugins.git] / lib / cpPlugins / Interface / Macros.h
index ef726ede4fcf724c05c70c3d6faf5c5c0495c707..790a99765c64d508ebfe0d0c32b97a0965e5d7c7 100644 (file)
@@ -6,10 +6,10 @@
 #include <cpPlugins/Interface/Config.h>
 
 // -------------------------------------------------------------------------
-#define cpPlugins_Id_Macro( name, category )                            \
+#define cpPlugins_Id_Macro( N, C )                                      \
   public:                                                               \
-  virtual std::string GetClassName( ) { return( #name ); }              \
-  virtual std::string GetClassCategory( ) { return( category ); }
+  virtual const char* GetClassName( ) const     { return( #N ); }       \
+  virtual const char* GetClassCategory( ) const { return( #C ); }
 
 // -------------------------------------------------------------------------
 #define CPPLUGINS_PROVIDER_HEADER_BEGIN( TYPE )                 \