Commit e8c224277023872a9c45cab0bd751e3f6c469764
1 parent
e54868bc
windows debug output fix
Showing
1 changed file
with
3 additions
and
4 deletions
sdk/openbr_plugin.cpp
| @@ -24,9 +24,9 @@ | @@ -24,9 +24,9 @@ | ||
| 24 | #ifdef BR_DISTRIBUTED | 24 | #ifdef BR_DISTRIBUTED |
| 25 | #include <mpi.h> | 25 | #include <mpi.h> |
| 26 | #endif // BR_DISTRIBUTED | 26 | #endif // BR_DISTRIBUTED |
| 27 | -#include <openbr_plugin.h> | ||
| 28 | - | ||
| 29 | #include <algorithm> | 27 | #include <algorithm> |
| 28 | +#include <iostream> | ||
| 29 | +#include <openbr_plugin.h> | ||
| 30 | 30 | ||
| 31 | #include "version.h" | 31 | #include "version.h" |
| 32 | #include "core/bee.h" | 32 | #include "core/bee.h" |
| @@ -450,7 +450,6 @@ QDataStream &br::operator>>(QDataStream &stream, Template &t) | @@ -450,7 +450,6 @@ QDataStream &br::operator>>(QDataStream &stream, Template &t) | ||
| 450 | TemplateList TemplateList::fromGallery(const br::File &gallery) | 450 | TemplateList TemplateList::fromGallery(const br::File &gallery) |
| 451 | { | 451 | { |
| 452 | TemplateList templates; | 452 | TemplateList templates; |
| 453 | - | ||
| 454 | foreach (const br::File &file, gallery.split()) { | 453 | foreach (const br::File &file, gallery.split()) { |
| 455 | QScopedPointer<Gallery> i(Gallery::make(file)); | 454 | QScopedPointer<Gallery> i(Gallery::make(file)); |
| 456 | TemplateList newTemplates = i->read(); | 455 | TemplateList newTemplates = i->read(); |
| @@ -941,7 +940,7 @@ void br::Context::messageHandler(QtMsgType type, const QMessageLogContext &conte | @@ -941,7 +940,7 @@ void br::Context::messageHandler(QtMsgType type, const QMessageLogContext &conte | ||
| 941 | break; | 940 | break; |
| 942 | } | 941 | } |
| 943 | 942 | ||
| 944 | - fprintf(stderr, "%s", qPrintable(txt)); | 943 | + std::cerr << txt.toStdString(); |
| 945 | Globals->mostRecentMessage = txt; | 944 | Globals->mostRecentMessage = txt; |
| 946 | 945 | ||
| 947 | if (Globals->logFile.isWritable()) { | 946 | if (Globals->logFile.isWritable()) { |