forked from qt-creator/qt-creator
QmlJSEditor: Fix compilation warning (gcc)
Reviewed-by: Christian Kamm
This commit is contained in:
@@ -81,15 +81,6 @@ using namespace QmlJS;
|
|||||||
using namespace QmlJS::AST;
|
using namespace QmlJS::AST;
|
||||||
using namespace QmlJSEditor::Internal;
|
using namespace QmlJSEditor::Internal;
|
||||||
|
|
||||||
static int blockBraceDepth(const QTextBlock &block)
|
|
||||||
{
|
|
||||||
int state = block.userState();
|
|
||||||
if (state == -1)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
return (state >> 8) & 0xFF;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int blockStartState(const QTextBlock &block)
|
static int blockStartState(const QTextBlock &block)
|
||||||
{
|
{
|
||||||
int state = block.userState();
|
int state = block.userState();
|
||||||
|
|||||||
Reference in New Issue
Block a user