Browse Source

fix syntax for addwatch

Bill Hoffman 23 years ago
parent
commit
57c97f62f6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/cmVariableWatch.h

+ 2 - 2
Source/cmVariableWatch.h

@@ -27,7 +27,7 @@
 class cmVariableWatch
 {
 public:
-  typedef void (WatchMethod)(const std::string& variable, int access_type, void* client_data);
+  typedef void (*WatchMethod)(const std::string& variable, int access_type, void* client_data);
 
   cmVariableWatch();
   ~cmVariableWatch();
@@ -57,7 +57,7 @@ public:
 protected:
   struct Pair
   {
-    WatchMethod* m_Method;
+    WatchMethod m_Method;
     void*        m_ClientData;
     Pair() : m_Method(0), m_ClientData(0) {}
   };