src/declarative/qml/qdeclarativeinstruction.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
child 37 758a864f9613
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    47 
    47 
    48 QT_BEGIN_NAMESPACE
    48 QT_BEGIN_NAMESPACE
    49 
    49 
    50 void QDeclarativeCompiledData::dump(QDeclarativeInstruction *instr, int idx)
    50 void QDeclarativeCompiledData::dump(QDeclarativeInstruction *instr, int idx)
    51 {
    51 {
       
    52 #ifdef QT_NO_DEBUG_STREAM
       
    53     Q_UNUSED(instr)
       
    54     Q_UNUSED(idx)
       
    55 #else
    52     QByteArray lineNumber = QByteArray::number(instr->line);
    56     QByteArray lineNumber = QByteArray::number(instr->line);
    53     if (instr->line == (unsigned short)-1)
    57     if (instr->line == (unsigned short)-1)
    54         lineNumber = "NA";
    58         lineNumber = "NA";
    55     const char *line = lineNumber.constData();
    59     const char *line = lineNumber.constData();
    56 
    60 
   215         break;
   219         break;
   216     default:
   220     default:
   217         qWarning().nospace() << idx << "\t\t" << line << "\t" << "XXX UNKOWN INSTRUCTION" << "\t" << instr->type;
   221         qWarning().nospace() << idx << "\t\t" << line << "\t" << "XXX UNKOWN INSTRUCTION" << "\t" << instr->type;
   218         break;
   222         break;
   219     }
   223     }
       
   224 #endif // QT_NO_DEBUG_STREAM
   220 }
   225 }
   221 
   226 
   222 QT_END_NAMESPACE
   227 QT_END_NAMESPACE