浏览代码

COMP: Fix build error on Windows

Andy Cedilnik 20 年之前
父节点
当前提交
ed75322836
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Source/cmCommand.h

+ 2 - 2
Source/cmCommand.h

@@ -106,7 +106,7 @@ public:
   /**
   /**
    * The class name of the command.
    * The class name of the command.
    */
    */
-  virtual const char* GetClassName() = 0;
+  virtual const char* GetNameOfClass() = 0;
 
 
   /**
   /**
    * Succinct documentation.
    * Succinct documentation.
@@ -188,7 +188,7 @@ private:
 
 
 // All subclasses of cmCommand should invoke this macro.
 // All subclasses of cmCommand should invoke this macro.
 #define cmTypeMacro(thisClass,superclass) \
 #define cmTypeMacro(thisClass,superclass) \
-virtual const char* GetClassName() { return #thisClass; } \
+virtual const char* GetNameOfClass() { return #thisClass; } \
 typedef superclass Superclass; \
 typedef superclass Superclass; \
 static bool IsTypeOf(const char *type) \
 static bool IsTypeOf(const char *type) \
 { \
 { \