1
0
Эх сурвалжийг харах

cmExecutionStatus: De-virtualize API.

It is clearly not required.
Stephen Kelly 10 жил өмнө
parent
commit
c8c341690f
1 өөрчлөгдсөн 10 нэмэгдсэн , 11 устгасан
  1. 10 11
      Source/cmExecutionStatus.h

+ 10 - 11
Source/cmExecutionStatus.h

@@ -26,33 +26,32 @@ public:
 
   cmExecutionStatus() { this->Clear();}
 
-  virtual void SetReturnInvoked(bool val)
+  void SetReturnInvoked(bool val)
   { this->ReturnInvoked = val; }
-  virtual bool GetReturnInvoked()
+  bool GetReturnInvoked()
   { return this->ReturnInvoked; }
 
-  virtual void SetBreakInvoked(bool val)
+  void SetBreakInvoked(bool val)
   { this->BreakInvoked = val; }
-  virtual bool GetBreakInvoked()
+  bool GetBreakInvoked()
   { return this->BreakInvoked; }
 
-  virtual void SetContinueInvoked(bool val)
+  void SetContinueInvoked(bool val)
   { this->ContinueInvoked = val; }
-  virtual bool GetContinueInvoked()
+  bool GetContinueInvoked()
   { return this->ContinueInvoked; }
 
-  virtual void Clear()
+  void Clear()
     {
     this->ReturnInvoked = false;
     this->BreakInvoked = false;
     this->ContinueInvoked = false;
     this->NestedError = false;
     }
-  virtual void SetNestedError(bool val) { this->NestedError = val; }
-  virtual bool GetNestedError() { return this->NestedError; }
+  void SetNestedError(bool val) { this->NestedError = val; }
+  bool GetNestedError() { return this->NestedError; }
 
-
-protected:
+private:
   bool ReturnInvoked;
   bool BreakInvoked;
   bool ContinueInvoked;