diff options
author | albert-github <albert.tests@gmail.com> | 2020-12-17 09:50:41 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-12-17 09:50:41 (GMT) |
commit | 92f9149ecf34dd1a7f19204ae7aff39c08dacc93 (patch) | |
tree | 2622207044d21a69f38135f9dd5ac476c28124f4 /addon | |
parent | 736557cabb38a37f12cb630adca9ef693646a980 (diff) | |
download | Doxygen-92f9149ecf34dd1a7f19204ae7aff39c08dacc93.zip Doxygen-92f9149ecf34dd1a7f19204ae7aff39c08dacc93.tar.gz Doxygen-92f9149ecf34dd1a7f19204ae7aff39c08dacc93.tar.bz2 |
Show configuration warnings unconditionally in the doxywizard
Show the configuration warnings in the doxywizard unconditionally so there is no need to use the `--debug` option
Diffstat (limited to 'addon')
-rw-r--r-- | addon/doxywizard/config_msg.cpp | 49 |
1 files changed, 11 insertions, 38 deletions
diff --git a/addon/doxywizard/config_msg.cpp b/addon/doxywizard/config_msg.cpp index f30e677..fc84206 100644 --- a/addon/doxywizard/config_msg.cpp +++ b/addon/doxywizard/config_msg.cpp @@ -12,16 +12,9 @@ void config_err(const char *fmt, ...) msg.append(QString::fromLatin1(fmt)); va_list args; va_start(args, fmt); - if (DoxygenWizard::debugFlag) - { - char debugOut[1000]; // this size should be sufficient - vsnprintf(debugOut, 1000,qPrintable(msg), args); - MainWindow::instance().outputLogText(QString::fromLatin1(debugOut)); - } - else - { - vfprintf(stderr, qPrintable(msg), args); - } + char debugOut[1000]; // this size should be sufficient + vsnprintf(debugOut, 1000,qPrintable(msg), args); + MainWindow::instance().outputLogText(QString::fromLatin1(debugOut)); va_end(args); } @@ -32,16 +25,9 @@ void config_term(const char *fmt, ...) msg.append(QString::fromLatin1(fmt)); va_list args; va_start(args, fmt); - if (DoxygenWizard::debugFlag) - { - char debugOut[1000]; // this size should be sufficient - vsnprintf(debugOut, 1000,qPrintable(msg), args); - MainWindow::instance().outputLogText(QString::fromLatin1(debugOut)); - } - else - { - vfprintf(stderr, qPrintable(msg), args); - } + char debugOut[1000]; // this size should be sufficient + vsnprintf(debugOut, 1000,qPrintable(msg), args); + MainWindow::instance().outputLogText(QString::fromLatin1(debugOut)); va_end(args); exit(1); } @@ -53,31 +39,18 @@ void config_warn(const char *fmt, ...) msg.append(QString::fromLatin1(fmt)); va_list args; va_start(args, fmt); - if (DoxygenWizard::debugFlag) - { - char debugOut[1000]; - vsnprintf(debugOut, 1000,qPrintable(msg), args); - MainWindow::instance().outputLogText(QString::fromLatin1(debugOut)); - } - else - { - vfprintf(stderr, qPrintable(msg), args); - } + char debugOut[1000]; + vsnprintf(debugOut, 1000,qPrintable(msg), args); + MainWindow::instance().outputLogText(QString::fromLatin1(debugOut)); va_end(args); } void config_open() { - if (DoxygenWizard::debugFlag) - { - MainWindow::instance().outputLogStart(); - } + MainWindow::instance().outputLogStart(); } void config_finish() { - if (DoxygenWizard::debugFlag) - { - MainWindow::instance().outputLogFinish(); - } + MainWindow::instance().outputLogFinish(); } |