diff options
Diffstat (limited to 'kate/xmlcheck')
-rw-r--r-- | kate/xmlcheck/plugin_katexmlcheck.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kate/xmlcheck/plugin_katexmlcheck.cpp b/kate/xmlcheck/plugin_katexmlcheck.cpp index 2f94759..1345d46 100644 --- a/kate/xmlcheck/plugin_katexmlcheck.cpp +++ b/kate/xmlcheck/plugin_katexmlcheck.cpp @@ -189,10 +189,10 @@ void PluginKateXMLCheckView::slotProcExited(KProcess*) for(TQStringList::Iterator it = lines.begin(); it != lines.end(); ++it) { TQString line = *it; line_count++; - int semicolon_1 = line.tqfind(':'); - int semicolon_2 = line.tqfind(':', semicolon_1+1); - int semicolon_3 = line.tqfind(':', semicolon_2+2); - int caret_pos = line.tqfind('^'); + int semicolon_1 = line.find(':'); + int semicolon_2 = line.find(':', semicolon_1+1); + int semicolon_3 = line.find(':', semicolon_2+2); + int caret_pos = line.find('^'); if( semicolon_1 != -1 && semicolon_2 != -1 && semicolon_3 != -1 ) { linenumber = line.mid(semicolon_1+1, semicolon_2-semicolon_1-1).stripWhiteSpace(); linenumber = linenumber.rightJustify(6, ' '); // for sorting numbers @@ -317,7 +317,7 @@ bool PluginKateXMLCheckView::slotValidate() // and needs to be ignored then): TQRegExp re("<!--.*-->"); re.setMinimal(true); - text_start.tqreplace(re, ""); + text_start.replace(re, ""); TQRegExp re_doctype("<!DOCTYPE\\s+(.*)\\s+(?:PUBLIC\\s+[\"'].*[\"']\\s+[\"'](.*)[\"']|SYSTEM\\s+[\"'](.*)[\"'])", false); re_doctype.setMinimal(true); @@ -336,7 +336,7 @@ bool PluginKateXMLCheckView::slotValidate() m_validating = true; *m_proc << "--valid"; } - } else if( text_start.tqfind("<!DOCTYPE") != -1 ) { + } else if( text_start.find("<!DOCTYPE") != -1 ) { // DTD is inside the XML file m_validating = true; *m_proc << "--valid"; |