void OSAllocator::releaseDecommitted(void* address, size_t bytes)
{
+ (void) bytes; // suppress unused formal parameter warning
// According to http://msdn.microsoft.com/en-us/library/aa366892(VS.85).aspx,
// dwSize must be 0 if dwFreeType is MEM_RELEASE.
bool result = VirtualFree(address, 0, MEM_RELEASE);
QVector<int> componentRoots;
// indices of objects that are the beginning of a new component
// scope. This is sorted and used for binary search.
- QVector<int> componentBoundaries;
+ QVector<quint32> componentBoundaries;
int _componentIndex;
QHash<int, int> _idToObjectIndex;
{
qint32 line;
qint32 column;
+
+ Location(): line(-1), column(-1) {}
+
inline bool operator<(const Location &other) const {
return line < other.line ||
(line == other.line && column < other.column);
qint32 minorVersion;
Location location;
+
+ Import(): type(0), uriIndex(0), qualifierIndex(0), majorVersion(0), minorVersion(0) {}
};
struct QmlUnit
shader->setUniformValue(shader->matrix, matrix);
QColor color = node->element()->batch->isOpaque ? QColor::fromRgbF(0.3, 1.0, 0.3) : QColor::fromRgbF(1.0, 0.3, 0.3);
- float ca = 0.33;
+ float ca = 0.33f;
shader->setUniformValue(shader->color, color.redF() * ca, color.greenF() * ca, color.blueF() * ca, ca);
visualizeDrawGeometry(gn->geometry());
glBlendFunc(GL_ONE, GL_ONE);
static float step = 0;
- step += M_PI * 2 / 1000.;
+ step += static_cast<float>(M_PI * 2 / 1000.);
if (step > M_PI * 2)
step = 0;
float angle = 80.0 * sin(step);
glEnableVertexAttribArray(0);
// Blacken out the actual rendered content...
- float bgOpacity = 0.8;
+ float bgOpacity = 0.8f;
if (m_visualizeMode == VisualizeBatches)
bgOpacity = 1.0;
float v[] = { -1, 1, 1, 1, -1, -1, 1, -1 };
} else if (m_visualizeMode == VisualizeClipping) {
QRect viewport = viewportRect();
shader->setUniformValue(shader->tweak, viewport.width(), viewport.height(), 0.5, 0);
- shader->setUniformValue(shader->color, 0.2, 0, 0, 0.2);
+ shader->setUniformValue(shader->color, GLfloat(0.2), 0, 0, GLfloat(0.2));
visualizeClipping(rootNode());
} else if (m_visualizeMode == VisualizeChanges) {
visualizeChanges(m_nodes.value(rootNode()));