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