kdevplatform/language: use QLatin1String with ==

GIT_SILENT
parent 20ba3ef1
...@@ -25,11 +25,11 @@ ...@@ -25,11 +25,11 @@
#include <grantlee/metatype.h> #include <grantlee/metatype.h>
#define GRANTLEE_LOOKUP_PROPERTY(name) \ #define GRANTLEE_LOOKUP_PROPERTY(name) \
if (property == QStringLiteral(# name)) \ if (property == QLatin1String(# name)) \
return QVariant::fromValue(object.name); return QVariant::fromValue(object.name);
#define GRANTLEE_LOOKUP_LIST_PROPERTY(name) \ #define GRANTLEE_LOOKUP_LIST_PROPERTY(name) \
if (property == QStringLiteral(# name)) \ if (property == QLatin1String(# name)) \
return QVariant::fromValue(KDevelop::CodeDescription::toVariantList(object.name)); return QVariant::fromValue(KDevelop::CodeDescription::toVariantList(object.name));
GRANTLEE_BEGIN_LOOKUP(KDevelop::VariableDescription) GRANTLEE_BEGIN_LOOKUP(KDevelop::VariableDescription)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment