From e07d088d7bd464a590ab597965174ff3140b61a1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 30 Jul 2011 22:13:16 +0000 Subject: Fix kile FTBFS under gcc4.6 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kile@1244134 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/kile/kiledocumentinfo.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/kile/kiledocumentinfo.cpp b/src/kile/kiledocumentinfo.cpp index e289d45..2689496 100644 --- a/src/kile/kiledocumentinfo.cpp +++ b/src/kile/kiledocumentinfo.cpp @@ -585,7 +585,7 @@ TQString TextInfo::matchBracket(TQChar obracket, uint &l, uint &pos) TQString TextInfo::getTextline(uint line, TodoResult &todo) { - static TQRegExp::TQRegExp reComments("[^\\\\](%.*$)"); + static TQRegExp reComments("[^\\\\](%.*$)"); todo.type = -1; TQString s = m_doc->textLine(line); @@ -616,7 +616,7 @@ TQString TextInfo::getTextline(uint line, TodoResult &todo) void TextInfo::searchTodoComment(const TQString &s, uint startpos, TodoResult &todo) { - static TQRegExp::TQRegExp reTodoComment("\\b(TODO|FIXME)\\b(:|\\s)?\\s*(.*)"); + static TQRegExp reTodoComment("\\b(TODO|FIXME)\\b(:|\\s)?\\s*(.*)"); if ( s.tqfind(reTodoComment,startpos) != -1 ) { @@ -870,12 +870,12 @@ void LaTeXInfo::updateStruct() Info::updateStruct(); TQMapConstIterator it; - static TQRegExp::TQRegExp reCommand("(\\\\[a-zA-Z]+)\\s*\\*?\\s*(\\{|\\[)"); - static TQRegExp::TQRegExp reRoot("\\\\documentclass|\\\\documentstyle"); - static TQRegExp::TQRegExp reBD("\\\\begin\\s*\\{\\s*document\\s*\\}"); - static TQRegExp::TQRegExp reReNewCommand("\\\\renewcommand.*$"); - static TQRegExp::TQRegExp reNumOfParams("\\s*\\[([1-9]+)\\]"); - static TQRegExp::TQRegExp reNumOfOptParams("\\s*\\[([1-9]+)\\]\\s*\\[([^\\{]*)\\]"); // the quantifier * isn't used by mistake, because also emtpy optional brackets are correct. + static TQRegExp reCommand("(\\\\[a-zA-Z]+)\\s*\\*?\\s*(\\{|\\[)"); + static TQRegExp reRoot("\\\\documentclass|\\\\documentstyle"); + static TQRegExp reBD("\\\\begin\\s*\\{\\s*document\\s*\\}"); + static TQRegExp reReNewCommand("\\\\renewcommand.*$"); + static TQRegExp reNumOfParams("\\s*\\[([1-9]+)\\]"); + static TQRegExp reNumOfOptParams("\\s*\\[([1-9]+)\\]\\s*\\[([^\\{]*)\\]"); // the quantifier * isn't used by mistake, because also emtpy optional brackets are correct. int teller=0, tagStart, bd = 0; uint tagEnd, tagLine = 0, tagCol = 0; @@ -1223,8 +1223,8 @@ void BibInfo::updateStruct() KILE_DEBUG() << "==void BibInfo::updateStruct()========" << endl; - static TQRegExp::TQRegExp reItem("^(\\s*)@([a-zA-Z]+)"); - static TQRegExp::TQRegExp reSpecial("string|preamble|comment"); + static TQRegExp reItem("^(\\s*)@([a-zA-Z]+)"); + static TQRegExp reSpecial("string|preamble|comment"); TQString s, key; int col = 0, startcol, startline = 0; -- cgit v1.2.1