1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
$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<QString,KileStructData> 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;
|