diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-12-26 09:30:31 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-05-09 21:49:14 (GMT) |
commit | 67a8d907adbc587021e9eba603cb789da09926d8 (patch) | |
tree | 564f7cb7813e9f79eb6f9ff5e5fa4db1e9bd62c5 /Source/cmExecutionStatus.h | |
parent | 0c519c70297bd2fd6e139d74c6b175c304c09192 (diff) | |
download | CMake-67a8d907adbc587021e9eba603cb789da09926d8.zip CMake-67a8d907adbc587021e9eba603cb789da09926d8.tar.gz CMake-67a8d907adbc587021e9eba603cb789da09926d8.tar.bz2 |
cmExecutionStatus: Remove arguments from setters
The setters are only used to set boolean values. The values are never
reset individually.
Diffstat (limited to 'Source/cmExecutionStatus.h')
-rw-r--r-- | Source/cmExecutionStatus.h | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/Source/cmExecutionStatus.h b/Source/cmExecutionStatus.h index fd3c416..ac5fe1d 100644 --- a/Source/cmExecutionStatus.h +++ b/Source/cmExecutionStatus.h @@ -11,16 +11,13 @@ class cmExecutionStatus { public: - cmExecutionStatus() { this->Clear(); } - - void SetReturnInvoked(bool val) { this->ReturnInvoked = val; } - bool GetReturnInvoked() { return this->ReturnInvoked; } - - void SetBreakInvoked(bool val) { this->BreakInvoked = val; } - bool GetBreakInvoked() { return this->BreakInvoked; } - - void SetContinueInvoked(bool val) { this->ContinueInvoked = val; } - bool GetContinueInvoked() { return this->ContinueInvoked; } + cmExecutionStatus() + : ReturnInvoked(false) + , BreakInvoked(false) + , ContinueInvoked(false) + , NestedError(false) + { + } void Clear() { @@ -29,8 +26,18 @@ public: this->ContinueInvoked = false; this->NestedError = false; } - void SetNestedError(bool val) { this->NestedError = val; } - bool GetNestedError() { return this->NestedError; } + + void SetReturnInvoked() { this->ReturnInvoked = true; } + bool GetReturnInvoked() const { return this->ReturnInvoked; } + + void SetBreakInvoked() { this->BreakInvoked = true; } + bool GetBreakInvoked() const { return this->BreakInvoked; } + + void SetContinueInvoked() { this->ContinueInvoked = true; } + bool GetContinueInvoked() const { return this->ContinueInvoked; } + + void SetNestedError() { this->NestedError = true; } + bool GetNestedError() const { return this->NestedError; } private: bool ReturnInvoked; |