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
v3.5.13-sru
tpearson 13 years ago
parent 2db4a66b13
commit e07d088d7b

@ -585,7 +585,7 @@ TQString TextInfo::matchBracket(TQChar obracket, uint &l, uint &pos)
TQString TextInfo::getTextline(uint line, TodoResult &todo) TQString TextInfo::getTextline(uint line, TodoResult &todo)
{ {
static TQRegExp::TQRegExp reComments("[^\\\\](%.*$)"); static TQRegExp reComments("[^\\\\](%.*$)");
todo.type = -1; todo.type = -1;
TQString s = m_doc->textLine(line); 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) 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 ) if ( s.tqfind(reTodoComment,startpos) != -1 )
{ {
@ -870,12 +870,12 @@ void LaTeXInfo::updateStruct()
Info::updateStruct(); Info::updateStruct();
TQMapConstIterator<TQString,KileStructData> it; TQMapConstIterator<TQString,KileStructData> it;
static TQRegExp::TQRegExp reCommand("(\\\\[a-zA-Z]+)\\s*\\*?\\s*(\\{|\\[)"); static TQRegExp reCommand("(\\\\[a-zA-Z]+)\\s*\\*?\\s*(\\{|\\[)");
static TQRegExp::TQRegExp reRoot("\\\\documentclass|\\\\documentstyle"); static TQRegExp reRoot("\\\\documentclass|\\\\documentstyle");
static TQRegExp::TQRegExp reBD("\\\\begin\\s*\\{\\s*document\\s*\\}"); static TQRegExp reBD("\\\\begin\\s*\\{\\s*document\\s*\\}");
static TQRegExp::TQRegExp reReNewCommand("\\\\renewcommand.*$"); static TQRegExp reReNewCommand("\\\\renewcommand.*$");
static TQRegExp::TQRegExp reNumOfParams("\\s*\\[([1-9]+)\\]"); static 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 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; int teller=0, tagStart, bd = 0;
uint tagEnd, tagLine = 0, tagCol = 0; uint tagEnd, tagLine = 0, tagCol = 0;
@ -1223,8 +1223,8 @@ void BibInfo::updateStruct()
KILE_DEBUG() << "==void BibInfo::updateStruct()========" << endl; KILE_DEBUG() << "==void BibInfo::updateStruct()========" << endl;
static TQRegExp::TQRegExp reItem("^(\\s*)@([a-zA-Z]+)"); static TQRegExp reItem("^(\\s*)@([a-zA-Z]+)");
static TQRegExp::TQRegExp reSpecial("string|preamble|comment"); static TQRegExp reSpecial("string|preamble|comment");
TQString s, key; TQString s, key;
int col = 0, startcol, startline = 0; int col = 0, startcol, startline = 0;

Loading…
Cancel
Save