UI: Fix compile error due to use of strlen in constexpr

This commit is contained in:
Paul Hindt
2023-10-10 14:53:02 -07:00
committed by Rodney
parent e49b31f536
commit d8f533538f
+3 -2
View File
@@ -57,8 +57,9 @@ try {
constexpr uint64_t currentVersion = (uint64_t)LIBOBS_API_VER << 16ULL |
OBS_RELEASE_CANDIDATE << 8ULL |
OBS_BETA;
constexpr bool isPreRelease = currentVersion & 0xffff ||
strlen(OBS_COMMIT);
constexpr bool isPreRelease =
currentVersion & 0xffff ||
std::char_traits<char>::length(OBS_COMMIT);
json manifestContents = json::parse(manifest_data);
Manifest manifest = manifestContents.get<Manifest>();