Fix inadvertent "TQ" changes.

pull/1/head
Darrell Anderson 12 years ago
parent 57a5438d76
commit b005049893

@ -237,7 +237,7 @@ bool LCHMFile::searchQuery( const TQString& inquery, TQStringList * searchresult
query.remove (pos, rxword.matchedLength()); query.remove (pos, rxword.matchedLength());
} }
#if defined (DUMP_SEARCH_TQUERY) #if defined (DUMP_SEARCH_QUERY)
// Dump the search query // Dump the search query
TQString qdump; TQString qdump;
for ( i = 0; i < phrases_must_exist.size(); i++ ) for ( i = 0; i < phrases_must_exist.size(); i++ )

@ -183,12 +183,12 @@ bool Index::parseDocumentToStringlist( const TQString & filename, TQStringList &
{ {
STATE_OUTSIDE_TAGS, // outside HTML tags; parse text STATE_OUTSIDE_TAGS, // outside HTML tags; parse text
STATE_IN_HTML_TAG, // inside HTML tags; wait for end tag STATE_IN_HTML_TAG, // inside HTML tags; wait for end tag
STATE_IN_TQUOTES, // inside HTML tags and inside quotes; wait for end quote (in var QuoteChar) STATE_IN_QUOTES, // inside HTML tags and inside quotes; wait for end quote (in var QuoteChar)
STATE_IN_HTML_ENTITY, // inside HTML entity; parse the entity STATE_IN_HTML_ENTITY, // inside HTML entity; parse the entity
}; };
state_t state = STATE_OUTSIDE_TAGS; state_t state = STATE_OUTSIDE_TAGS;
TQChar QuoteChar; // used in STATE_IN_TQUOTES TQChar QuoteChar; // used in STATE_IN_QUOTES
for ( unsigned int j = 0; j < text.length(); j++ ) for ( unsigned int j = 0; j < text.length(); j++ )
{ {
@ -203,7 +203,7 @@ bool Index::parseDocumentToStringlist( const TQString & filename, TQStringList &
// Ignore everything until we see '>' (end of HTML tag) or quote char (quote start) // Ignore everything until we see '>' (end of HTML tag) or quote char (quote start)
if ( ch == '"' || ch == '\'' ) if ( ch == '"' || ch == '\'' )
{ {
state = STATE_IN_TQUOTES; state = STATE_IN_QUOTES;
QuoteChar = ch; QuoteChar = ch;
} }
else if ( ch == '>' ) else if ( ch == '>' )
@ -211,7 +211,7 @@ bool Index::parseDocumentToStringlist( const TQString & filename, TQStringList &
continue; continue;
} }
else if ( state == STATE_IN_TQUOTES ) else if ( state == STATE_IN_QUOTES )
{ {
// We are inside quoted text inside HTML tag. // We are inside quoted text inside HTML tag.
// Ignore everything until we see the quote character again // Ignore everything until we see the quote character again

Loading…
Cancel
Save