summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard/config_doxyw.l
diff options
context:
space:
mode:
Diffstat (limited to 'addon/doxywizard/config_doxyw.l')
-rw-r--r--addon/doxywizard/config_doxyw.l10
1 files changed, 7 insertions, 3 deletions
diff --git a/addon/doxywizard/config_doxyw.l b/addon/doxywizard/config_doxyw.l
index 3e1c59f..829f807 100644
--- a/addon/doxywizard/config_doxyw.l
+++ b/addon/doxywizard/config_doxyw.l
@@ -79,16 +79,20 @@ static QString error_str = QString::fromAscii("error: ");
void config_err(const char *fmt, ...)
{
+ QString msg = error_str;
+ msg.append(QString::fromAscii(fmt));
va_list args;
va_start(args, fmt);
- vfprintf(stderr, qPrintable(error_str.append(QString::fromAscii(fmt))), args);
- va_end(args);
+ vfprintf(stderr, qPrintable(msg), args);
+ va_end(args);
}
void config_warn(const char *fmt, ...)
{
+ QString msg = warning_str;
+ msg.append(QString::fromAscii(fmt));
va_list args;
va_start(args, fmt);
- vfprintf(stderr, qPrintable(warning_str.append(QString::fromAscii(fmt))), args);
+ vfprintf(stderr, qPrintable(msg), args);
va_end(args);
}