forked from qt-creator/qt-creator
LSP: Use char16_t literals for keys into json objects
Allows use of QStringView based QJson* functions. Change-Id: I6f39306652bea3abecdcf9e1d4ae494a6b9101c7 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -40,8 +40,8 @@ using namespace Utils;
|
||||
|
||||
namespace ClangCodeModel::Internal {
|
||||
|
||||
static constexpr char roleKey[] = "role";
|
||||
static constexpr char arcanaKey[] = "arcana";
|
||||
static constexpr char16_t roleKey[] = u"role";
|
||||
static constexpr char16_t arcanaKey[] = u"arcana";
|
||||
|
||||
QString ClangdAstNode::role() const { return typedValue<QString>(roleKey); }
|
||||
QString ClangdAstNode::kind() const { return typedValue<QString>(kindKey); }
|
||||
|
||||
Reference in New Issue
Block a user