Nim: Fix warnings during build

Change-Id: I9201318c6bf2762c22d2a3f7778877a7db16be14
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Filippo Cucchetto <filippocucchetto@gmail.com>
This commit is contained in:
Tobias Hunger
2016-06-07 11:49:45 +02:00
committed by Filippo Cucchetto
parent cd00e64e37
commit 0b30cad820
3 changed files with 3 additions and 7 deletions

View File

@@ -52,8 +52,8 @@ public:
private:
bool canHandle(ProjectExplorer::Target *parent) const;
ProjectExplorer::RunConfiguration *doCreate(ProjectExplorer::Target *parent, Core::Id id);
ProjectExplorer::RunConfiguration *doRestore(ProjectExplorer::Target *parent, const QVariantMap &map);
ProjectExplorer::RunConfiguration *doCreate(ProjectExplorer::Target *parent, Core::Id id) override;
ProjectExplorer::RunConfiguration *doRestore(ProjectExplorer::Target *parent, const QVariantMap &map) override;
};
}

View File

@@ -43,9 +43,7 @@ QSet<QString> asStringSet(const std::initializer_list<const char *> strings)
namespace Nim {
NimLexer::NimLexer(const QChar *text, int length, State state)
: m_text(text)
, m_length(length)
, m_state(state)
: m_state(state)
, m_stream(text, length)
{}

View File

@@ -113,8 +113,6 @@ private:
bool matchMultiLineStringLiteralStart();
Token readMultiLineStringLiteral(bool moveForward = true);
const QChar *m_text;
int m_length;
State m_state;
SourceCodeStream m_stream;
};