diff options
author | Tasuku Suzuki <tasuku.suzuki@nokia.com> | 2010-05-31 13:11:57 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2010-05-31 13:12:40 (GMT) |
commit | 77474ad850b91e1de080d2f8fb9a60af2f89668f (patch) | |
tree | 0c1412a7b36cd1e0d919d2d4e2bea3c0ae113177 /src/declarative/qml/qdeclarativeinstruction.cpp | |
parent | cbff8db322bf8e99cb3e062cc47fd2fc0db81ac2 (diff) | |
download | Qt-77474ad850b91e1de080d2f8fb9a60af2f89668f.zip Qt-77474ad850b91e1de080d2f8fb9a60af2f89668f.tar.gz Qt-77474ad850b91e1de080d2f8fb9a60af2f89668f.tar.bz2 |
Fix QT_NO_TEXTSTREAM compilation errors.
Merge-request: 647
Reviewed-by: Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>
Diffstat (limited to 'src/declarative/qml/qdeclarativeinstruction.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativeinstruction.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativeinstruction.cpp b/src/declarative/qml/qdeclarativeinstruction.cpp index b86d082..0f7b09d 100644 --- a/src/declarative/qml/qdeclarativeinstruction.cpp +++ b/src/declarative/qml/qdeclarativeinstruction.cpp @@ -49,6 +49,10 @@ QT_BEGIN_NAMESPACE void QDeclarativeCompiledData::dump(QDeclarativeInstruction *instr, int idx) { +#ifdef QT_NO_DEBUG_STREAM + Q_UNUSED(instr) + Q_UNUSED(idx) +#else QByteArray lineNumber = QByteArray::number(instr->line); if (instr->line == (unsigned short)-1) lineNumber = "NA"; @@ -217,6 +221,7 @@ void QDeclarativeCompiledData::dump(QDeclarativeInstruction *instr, int idx) qWarning().nospace() << idx << "\t\t" << line << "\t" << "XXX UNKOWN INSTRUCTION" << "\t" << instr->type; break; } +#endif // QT_NO_DEBUG_STREAM } QT_END_NAMESPACE |