This commit is contained in:
1 file changed
+6
@@ -45,6 +45,12 @@ namespace ArbUt {
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~Result() {
|
||||||
|
if (_resultStatus == ResultStatus::Error) {
|
||||||
|
delete _errorMessage;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// @brief Returns whether or not the function succeeded,
|
/// @brief Returns whether or not the function succeeded,
|
||||||
/// @return Whether or not the function succeeded.
|
/// @return Whether or not the function succeeded.
|
||||||
[[nodiscard]] inline ResultStatus GetStatus() const noexcept { return _resultStatus; }
|
[[nodiscard]] inline ResultStatus GetStatus() const noexcept { return _resultStatus; }
|
||||||
|
|||||||
Reference in new issue
Block a user