diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-30 22:13:16 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-30 22:13:16 +0000 |
commit | e07d088d7bd464a590ab597965174ff3140b61a1 (patch) | |
tree | 4f61cce1eaad3b85c8a6cbd8b0c43ebdea51ba40 | |
parent | 2db4a66b13dbbd08898c3199145ca7179c9c05b4 (diff) | |
download | kile-e07d088d7bd464a590ab597965174ff3140b61a1.tar.gz kile-e07d088d7bd464a590ab597965174ff3140b61a1.zip |
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
-rw-r--r-- | src/kile/kiledocumentinfo.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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<TQString,KileStructData> 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; |