summaryrefslogtreecommitdiffstats
path: root/src/core/qchangearbiter.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-03-12 10:52:52 +0100
committerKonstantin Ritt <ritt.ks@gmail.com>2015-03-12 10:17:32 +0000
commitb5e39528e72655af98bd80b349821b24915739cc (patch)
tree62c57f5c32454420d0e689d2cdcd91040c3f76bc /src/core/qchangearbiter.cpp
parentfad6a4ed38a52693fd4bbfbadd71458a27c96ad2 (diff)
Fix MSVC warnings.
aspects\qabstractaspect.cpp(50) : warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data resources\qframeallocator.cpp(276) : warning C4267: 'argument' : conversion from 'size_t' to 'uint', possible loss of data resources\qframeallocator.cpp(284) : warning C4267: 'argument' : conversion from 'size_t' to 'uint', possible loss of data qchangearbiter.cpp(108) : warning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data qt3d/src/render/backend/jobs/renderviewjobutils_p.h(64) : warning C4099: 'Qt3D::Render::ShaderUniform' : type name first seen using 'struct' now seen using 'class' Change-Id: I055f2021cbecf0765a811aedd87eb2cee97e6431 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/core/qchangearbiter.cpp')
-rw-r--r--src/core/qchangearbiter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/qchangearbiter.cpp b/src/core/qchangearbiter.cpp
index 1d111d642..c42223a20 100644
--- a/src/core/qchangearbiter.cpp
+++ b/src/core/qchangearbiter.cpp
@@ -105,7 +105,7 @@ void QChangeArbiter::initialize(QAbstractAspectJobManager *jobManager)
void QChangeArbiter::distributeQueueChanges(QChangeQueue *changeQueue)
{
- for (int i = 0, n = changeQueue->size(); i < n; i++) {
+ for (int i = 0, n = int(changeQueue->size()); i < n; i++) {
QSceneChangePtr& change = (*changeQueue)[i];
// Lookup which observers care about the subject this change came from
// and distribute the change to them