summaryrefslogtreecommitdiffstats
path: root/src/message.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2000-05-28 19:46:08 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2000-05-28 19:46:08 (GMT)
commit3e33c5094f5127c719418656fff8e47d2e19405e (patch)
tree1f7723f69aa2917d2408894c68e7150f7b7ff3d5 /src/message.cpp
parent745526b6e9683de926af27c4313574a514a3d7c3 (diff)
downloadDoxygen-3e33c5094f5127c719418656fff8e47d2e19405e.zip
Doxygen-3e33c5094f5127c719418656fff8e47d2e19405e.tar.gz
Doxygen-3e33c5094f5127c719418656fff8e47d2e19405e.tar.bz2
Release-1.1.3-20000528
Diffstat (limited to 'src/message.cpp')
-rw-r--r--src/message.cpp23
1 files changed, 17 insertions, 6 deletions
diff --git a/src/message.cpp b/src/message.cpp
index 678a80a..9554c02 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -18,7 +18,7 @@
#include <stdarg.h>
#include <stdio.h>
#include "config.h"
-#include <qregexp.h>
+#include "util.h"
static QCString outputFormat;
static int warnFormatOrder; // 1 = $file,$line,$text
@@ -62,11 +62,22 @@ void initWarningFormat()
{
warnFormatOrder = 6;
}
- outputFormat = Config::warnFormat.
- replace(QRegExp("\\$file"),"%s").
- replace(QRegExp("\\$text"),"%s").
- replace(QRegExp("\\$line"),"%d")+
- '\n';
+ outputFormat =
+ substitute(
+ substitute(
+ substitute(
+ Config::warnFormat,
+ "$file","%s"
+ ),
+ "$text","%s"
+ ),
+ "$line","%d"
+ )+'\n';
+
+ // replace(QRegExp("\\$file"),"%s").
+ // replace(QRegExp("\\$text"),"%s").
+ // replace(QRegExp("\\$line"),"%d")+
+ // '\n';
}