More warning fixes

This commit is contained in:
Atlante45 2015-12-11 17:02:03 -08:00
parent 146581714a
commit b7ba3c5f17
3 changed files with 7 additions and 2 deletions

View file

@ -107,7 +107,7 @@ void FetchItems::run(const SceneContextPointer& sceneContext, const RenderContex
}
if (_probeNumItems) {
_probeNumItems(renderContext, outItems.size());
_probeNumItems(renderContext, (int)outItems.size());
}
}

View file

@ -216,7 +216,7 @@ void renderItems(const SceneContextPointer& sceneContext, const RenderContextPoi
class FetchItems {
public:
typedef std::function<void (const RenderContextPointer& context, size_t count)> ProbeNumItems;
typedef std::function<void (const RenderContextPointer& context, int count)> ProbeNumItems;
FetchItems(const ProbeNumItems& probe): _probeNumItems(probe) {}
FetchItems(const ItemFilter& filter, const ProbeNumItems& probe): _filter(filter), _probeNumItems(probe) {}

View file

@ -57,6 +57,10 @@ void myMessageHandler(QtMsgType type, const QMessageLogContext &context, const Q
//in this function, you can write the message to any stream!
switch (type) {
case QtInfoMsg:
fprintf(stdout, "UnknownType: %s\n", qPrintable(msg));
txt += msg;
break;
case QtDebugMsg:
fprintf(stdout, "Debug: %s\n", qPrintable(msg));
txt += msg;
@ -72,6 +76,7 @@ void myMessageHandler(QtMsgType type, const QMessageLogContext &context, const Q
case QtFatalMsg:
fprintf(stdout, "Fatal: %s\n", qPrintable(msg));
txt += msg;
break;
}
if (outStream) {