diff options
author | Treeston <treeston.mmoc@gmail.com> | 2020-08-24 16:38:39 +0200 |
---|---|---|
committer | Treeston <treeston.mmoc@gmail.com> | 2020-08-24 16:38:39 +0200 |
commit | fd05a353418e1be8f4d5194fd2222de7f3955241 (patch) | |
tree | 500a5d8c4f894b1750e9da39f9390593f4610995 /src/common/Utilities/Util.h | |
parent | 11c4a60fbe9d471618e0579f588706746ff3e439 (diff) |
Revert "[3.3.5] Core/ChatCommands: C++17 cleanup (if constexpr + std::string_view)"
This reverts commit 11c4a60fbe9d471618e0579f588706746ff3e439.
Diffstat (limited to 'src/common/Utilities/Util.h')
-rw-r--r-- | src/common/Utilities/Util.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/Utilities/Util.h b/src/common/Utilities/Util.h index 8c97f99fe63..cd8765b309f 100644 --- a/src/common/Utilities/Util.h +++ b/src/common/Utilities/Util.h @@ -20,7 +20,6 @@ #include "Define.h" #include "Errors.h" -#include "Optional.h" #include <array> #include <string> @@ -346,7 +345,7 @@ inline std::vector<uint8> HexStrToByteVector(std::string_view str, bool reverse return buf; } -TC_COMMON_API Optional<bool> StringToBool(std::string_view str); +TC_COMMON_API bool StringToBool(std::string_view str); TC_COMMON_API bool StringEqualI(std::string_view str1, std::string_view str2); TC_COMMON_API bool StringStartsWith(std::string_view haystack, std::string_view needle); |