From e8c224277023872a9c45cab0bd751e3f6c469764 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Tue, 5 Mar 2013 14:43:19 -0500 Subject: [PATCH] windows debug output fix --- sdk/openbr_plugin.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sdk/openbr_plugin.cpp b/sdk/openbr_plugin.cpp index a79d5b1..9a539fc 100644 --- a/sdk/openbr_plugin.cpp +++ b/sdk/openbr_plugin.cpp @@ -24,9 +24,9 @@ #ifdef BR_DISTRIBUTED #include #endif // BR_DISTRIBUTED -#include - #include +#include +#include #include "version.h" #include "core/bee.h" @@ -450,7 +450,6 @@ QDataStream &br::operator>>(QDataStream &stream, Template &t) TemplateList TemplateList::fromGallery(const br::File &gallery) { TemplateList templates; - foreach (const br::File &file, gallery.split()) { QScopedPointer i(Gallery::make(file)); TemplateList newTemplates = i->read(); @@ -941,7 +940,7 @@ void br::Context::messageHandler(QtMsgType type, const QMessageLogContext &conte break; } - fprintf(stderr, "%s", qPrintable(txt)); + std::cerr << txt.toStdString(); Globals->mostRecentMessage = txt; if (Globals->logFile.isWritable()) { -- libgit2 0.21.4