Commit cac3b4b0 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlDesigner: Fix gcc warnings

Reviewed-by: Thomas Hartmann
parent fd5af796
......@@ -40,14 +40,6 @@
namespace QmlDesigner {
namespace Internal {
static bool stringToBool(const QString &boolString)
{
QString lowerString(boolString.toLower());
if (lowerString == "true" || lowerString == "1")
return true;
return false;
}
MetaInfoParser::MetaInfoParser(const MetaInfo &metaInfo)
: m_metaInfo(metaInfo)
......
......@@ -386,9 +386,10 @@ NodeMetaInfoPrivate::NodeMetaInfoPrivate() : m_isValid(false)
}
NodeMetaInfoPrivate::NodeMetaInfoPrivate(Model *model, QString type, int maj, int min) : m_model(model),
NodeMetaInfoPrivate::NodeMetaInfoPrivate(Model *model, QString type, int maj, int min) :
m_qualfiedTypeName(type), m_majorVersion(maj),
m_minorVersion(min), m_isValid(true), m_isComponent(false)
m_minorVersion(min), m_isValid(true), m_isComponent(false),
m_model(model)
{
if (!lookupContext()) {
m_isValid = false;
......
......@@ -40,14 +40,6 @@ namespace QmlDesigner {
namespace Internal {
namespace PropertyParser {
static QVariant fromEnum(const QString &string, const QString &, const MetaInfo &)
{
if (string.isEmpty())
return QVariant();
return QVariant(string);
}
QVariant read(const QString &typeStr, const QString &str, const MetaInfo &)
{
return read(typeStr, str);
......
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