forked from qt-creator/qt-creator
LSP: Avoid running strlen() on json keys
This feels better when stepping through the code but doesn't really make a difference in the profile. Change-Id: I2c30578bf1e990b039caadb8b8ce532f009b775d Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -968,7 +968,9 @@ public:
|
||||
using JsonObject::JsonObject;
|
||||
|
||||
DocumentUri uri() const { return TextDocumentIdentifier(value("textDocument")).uri(); }
|
||||
QList<Range> inactiveRegions() const { return array<Range>("regions"); }
|
||||
QList<Range> inactiveRegions() const {
|
||||
return array<Range>(LanguageServerProtocol::Key{"regions"});
|
||||
}
|
||||
};
|
||||
|
||||
class InactiveRegionsNotification : public Notification<InactiveRegionsParams>
|
||||
|
||||
Reference in New Issue
Block a user