qdoc: Fix warning about unused variable.

qmlvisitor.cpp:248:13: warning: variable 'pgc_idx' set but not used
[-Wunused-but-set-variable].

Change-Id: Ia8ec15add69771ad7b71d2e17c68204c5bffb360
Reviewed-by: Martin Smith <martin.smith@digia.com>
bb10
Friedemann Kleint 2013-07-15 09:23:54 +02:00 committed by The Qt Project
parent 02afd94ef4
commit 0e4c09662a
1 changed files with 0 additions and 2 deletions

View File

@ -245,13 +245,11 @@ bool QmlDocVisitor::applyDocumentation(QQmlJS::AST::SourceLocation location, Nod
NodeList nodes;
Node* nodePassedIn = node;
InnerNode* parent = nodePassedIn->parent();
int pgc_idx = -1;
node->setDoc(doc);
nodes.append(node);
if (topicsUsed.size() > 0) {
for (int i=0; i<topicsUsed.size(); ++i) {
if (topicsUsed.at(i).topic == QString("qmlpropertygroup")) {
pgc_idx = i;
qDebug() << "PROPERTY GROUP COMMAND SEEN:" << topicsUsed.at(i).args << filePath_;
break;
}