head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.4 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.2 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.1.0.8 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.6 pkgsrc-2011Q3-base:1.1 pkgsrc-2011Q2:1.1.0.4 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.2 pkgsrc-2011Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2012.03.21.22.59.42; author markd; state dead; branches; next 1.1; 1.1 date 2011.01.29.22.23.36; author markd; state Exp; branches; next ; desc @@ 1.2 log @Update to 2.1.1 KDE4 version. @ text @$NetBSD: patch-ab,v 1.1 2011/01/29 22:23:36 markd Exp $ fix build with gcc4.5 --- src/kile/kiledocumentinfo.cpp.orig 2008-01-06 13:45:25.000000000 +0000 +++ src/kile/kiledocumentinfo.cpp @@@@ -585,7 +585,7 @@@@ QString TextInfo::matchBracket(QChar obr QString TextInfo::getTextline(uint line, TodoResult &todo) { - static QRegExp::QRegExp reComments("[^\\\\](%.*$)"); + static QRegExp reComments("[^\\\\](%.*$)"); todo.type = -1; QString s = m_doc->textLine(line); @@@@ -616,7 +616,7 @@@@ QString TextInfo::getTextline(uint line, void TextInfo::searchTodoComment(const QString &s, uint startpos, TodoResult &todo) { - static QRegExp::QRegExp reTodoComment("\\b(TODO|FIXME)\\b(:|\\s)?\\s*(.*)"); + static QRegExp reTodoComment("\\b(TODO|FIXME)\\b(:|\\s)?\\s*(.*)"); if ( s.find(reTodoComment,startpos) != -1 ) { @@@@ -870,12 +870,12 @@@@ void LaTeXInfo::updateStruct() Info::updateStruct(); QMapConstIterator it; - static QRegExp::QRegExp reCommand("(\\\\[a-zA-Z]+)\\s*\\*?\\s*(\\{|\\[)"); - static QRegExp::QRegExp reRoot("\\\\documentclass|\\\\documentstyle"); - static QRegExp::QRegExp reBD("\\\\begin\\s*\\{\\s*document\\s*\\}"); - static QRegExp::QRegExp reReNewCommand("\\\\renewcommand.*$"); - static QRegExp::QRegExp reNumOfParams("\\s*\\[([1-9]+)\\]"); - static QRegExp::QRegExp reNumOfOptParams("\\s*\\[([1-9]+)\\]\\s*\\[([^\\{]*)\\]"); // the quantifier * isn't used by mistake, because also emtpy optional brackets are correct. + static QRegExp reCommand("(\\\\[a-zA-Z]+)\\s*\\*?\\s*(\\{|\\[)"); + static QRegExp reRoot("\\\\documentclass|\\\\documentstyle"); + static QRegExp reBD("\\\\begin\\s*\\{\\s*document\\s*\\}"); + static QRegExp reReNewCommand("\\\\renewcommand.*$"); + static QRegExp reNumOfParams("\\s*\\[([1-9]+)\\]"); + static QRegExp 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 QRegExp::QRegExp reItem("^(\\s*)@@([a-zA-Z]+)"); - static QRegExp::QRegExp reSpecial("string|preamble|comment"); + static QRegExp reItem("^(\\s*)@@([a-zA-Z]+)"); + static QRegExp reSpecial("string|preamble|comment"); QString s, key; int col = 0, startcol, startline = 0; @ 1.1 log @Fix build with gcc4.5 @ text @d1 1 a1 1 $NetBSD$ @