aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2020-05-13 14:02:15 +0200
committerDavid Schulz <david.schulz@qt.io>2020-05-13 12:16:00 +0000
commit689fac8fe9cc245a957db78d4ff8d8f12515f687 (patch)
tree5b6db2eaeeabc9131cad316853dfdba0a75f9e19
parentf362304169444c2543ccd7cc204a7551690d3744 (diff)
LSP: Fix wrong assert
Change-Id: If1015ba4f1d5519ac379e4c4b1cca8ffbf2c52ae Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--src/libs/languageserverprotocol/lsputils.h2
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);