diff options
| author | David Schulz <david.schulz@qt.io> | 2020-05-13 14:02:15 +0200 |
|---|---|---|
| committer | David Schulz <david.schulz@qt.io> | 2020-05-13 12:16:00 +0000 |
| commit | 689fac8fe9cc245a957db78d4ff8d8f12515f687 (patch) | |
| tree | 5b6db2eaeeabc9131cad316853dfdba0a75f9e19 | |
| parent | f362304169444c2543ccd7cc204a7551690d3744 (diff) | |
| download | qt-creator-689fac8fe9cc245a957db78d4ff8d8f12515f687.tar.gz | |
LSP: Fix wrong assert
Change-Id: If1015ba4f1d5519ac379e4c4b1cca8ffbf2c52ae
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
| -rw-r--r-- | src/libs/languageserverprotocol/lsputils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/languageserverprotocol/lsputils.h b/src/libs/languageserverprotocol/lsputils.h index 8da5fdd93a..435d956eeb 100644 --- a/src/libs/languageserverprotocol/lsputils.h +++ b/src/libs/languageserverprotocol/lsputils.h @@ -118,7 +118,7 @@ public: LanguageClientValue(const T &value) : Utils::variant<T, std::nullptr_t>(value) { } LanguageClientValue(const QJsonValue &value) { - if (QTC_GUARD(value.isUndefined()) || value.isNull()) + if (!QTC_GUARD(!value.isUndefined()) || value.isNull()) *this = nullptr; else *this = fromJsonValue<T>(value); |
