fix warnings

Reviewed-by: Marco Bubke
This commit is contained in:
Thomas Hartmann
2010-10-21 17:11:43 +02:00
parent 35fe835d02
commit 24a76a73a9
2 changed files with 3 additions and 3 deletions

View File

@@ -80,14 +80,14 @@ static inline QString deEscape(const QString &value)
static inline int fixUpMajorVersionForQtQuick(const QString &value, int i)
{
if (i = 1 && value == "QtQuick")
if (i == 1 && value == "QtQuick")
return 4;
else return i;
}
static inline int fixUpMinorVersionForQtQuick(const QString &value, int i)
{
if (i = 0 && value == "QtQuick")
if (i == 0 && value == "QtQuick")
return 7;
else return i;
}

View File

@@ -214,7 +214,7 @@ void QuickToolBar::apply(TextEditor::BaseTextEditorEditable *editor, Document::P
}
bool QuickToolBar::isAvailable(TextEditor::BaseTextEditorEditable *editor, Document::Ptr document, AST::Node *node)
bool QuickToolBar::isAvailable(TextEditor::BaseTextEditorEditable *, Document::Ptr document, AST::Node *node)
{
if (document.isNull())
return false;