mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:17:43 +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) {
|
if (_probeNumItems) {
|
||||||
_probeNumItems(renderContext, outItems.size());
|
_probeNumItems(renderContext, (int)outItems.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -216,7 +216,7 @@ void renderItems(const SceneContextPointer& sceneContext, const RenderContextPoi
|
||||||
|
|
||||||
class FetchItems {
|
class FetchItems {
|
||||||
public:
|
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 ProbeNumItems& probe): _probeNumItems(probe) {}
|
||||||
FetchItems(const ItemFilter& filter, const ProbeNumItems& probe): _filter(filter), _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!
|
//in this function, you can write the message to any stream!
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
case QtInfoMsg:
|
||||||
|
fprintf(stdout, "UnknownType: %s\n", qPrintable(msg));
|
||||||
|
txt += msg;
|
||||||
|
break;
|
||||||
case QtDebugMsg:
|
case QtDebugMsg:
|
||||||
fprintf(stdout, "Debug: %s\n", qPrintable(msg));
|
fprintf(stdout, "Debug: %s\n", qPrintable(msg));
|
||||||
txt += msg;
|
txt += msg;
|
||||||
|
@ -72,6 +76,7 @@ void myMessageHandler(QtMsgType type, const QMessageLogContext &context, const Q
|
||||||
case QtFatalMsg:
|
case QtFatalMsg:
|
||||||
fprintf(stdout, "Fatal: %s\n", qPrintable(msg));
|
fprintf(stdout, "Fatal: %s\n", qPrintable(msg));
|
||||||
txt += msg;
|
txt += msg;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (outStream) {
|
if (outStream) {
|
||||||
|
|
Loading…
Reference in a new issue