Commit b12d7875 authored by Andrea Iacovitti's avatar Andrea Iacovitti

Compile if TOKEN_DEBUG defined.

parent 9e198b8e
......@@ -30,7 +30,7 @@
// KDE HTML Widget - Tokenizers
// #define TOKEN_DEBUG 1
//#define TOKEN_DEBUG 2
// #define TOKEN_DEBUG 2
#include "htmltokenizer.h"
#include "html_documentimpl.h"
......@@ -1084,10 +1084,9 @@ void HTMLTokenizer::parseTag(TokenizerString &src)
checkBuffer();
#if defined(TOKEN_DEBUG) && TOKEN_DEBUG > 1
uint l = 0;
while(l < src.length() && (src.toString()[l]).toLatin1().constData() != '>')
while(l < src.length() && (src.toString()[l]).toLatin1() != '>')
l++;
qDebug("src is now: *%s*, tquote: %d",
src.toString().left(l).toLatin1().constData(), tquote);
qDebug("src is now: *%s*, tquote: %d", src.toString().left(l).toLatin1().constData(), tquote);
#endif
switch(tag) {
case NoTag:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment