]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Macros.h
More on graph editor
[cpPlugins.git] / lib / cpPlugins / Interface / Macros.h
index ef726ede4fcf724c05c70c3d6faf5c5c0495c707..90cea8c5fae400215e057e7e467c2fefa5908b4f 100644 (file)
@@ -8,8 +8,8 @@
 // -------------------------------------------------------------------------
 #define cpPlugins_Id_Macro( name, category )                            \
   public:                                                               \
-  virtual std::string GetClassName( ) { return( #name ); }              \
-  virtual std::string GetClassCategory( ) { return( category ); }
+  virtual const char* GetClassName( ) const     { return( #name ); }    \
+  virtual const char* GetClassCategory( ) const { return( #category ); }
 
 // -------------------------------------------------------------------------
 #define CPPLUGINS_PROVIDER_HEADER_BEGIN( TYPE )                 \