mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 18:02:31 +02:00
More warning fixes
This commit is contained in:
parent
146581714a
commit
b7ba3c5f17
3 changed files with 7 additions and 2 deletions
|
@ -107,7 +107,7 @@ void FetchItems::run(const SceneContextPointer& sceneContext, const RenderContex
|
|||
}
|
||||
|
||||
if (_probeNumItems) {
|
||||
_probeNumItems(renderContext, outItems.size());
|
||||
_probeNumItems(renderContext, (int)outItems.size());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue