forked from qt-creator/qt-creator
fix warnings
Reviewed-by: Marco Bubke
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user