forked from qt-creator/qt-creator
LSP: Fix wrong assert
Change-Id: If1015ba4f1d5519ac379e4c4b1cca8ffbf2c52ae Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user