1
0
Fork 0

FGCanvas: warning fixes

This commit is contained in:
James Turner 2018-09-18 23:31:07 +01:00
parent 110aec6039
commit 639c8fd4b4

View file

@ -31,11 +31,11 @@
QTransform qTransformFromCanvas(LocalProp* prop)
{
float m[6] = { 1.0, 0.0, 0.0, 1.0, 0.0, 0.0 }; // identity matrix
for (int i =0; i< 6; ++i) {
double m[6] = { 1.0, 0.0, 0.0, 1.0, 0.0, 0.0 }; // identity matrix
for (unsigned int i =0; i< 6; ++i) {
LocalProp* mProp = prop->getOrCreateChildWithNameAndIndex(NameIndexTuple("m", i));
if (!mProp->value().isNull()) {
m[i] = mProp->value().toFloat();
m[i] = mProp->value().toDouble();
}
}
@ -73,6 +73,7 @@ bool FGCanvasElement::isHighlighted() const
CanvasItem *FGCanvasElement::createQuickItem(QQuickItem *parent)
{
Q_UNUSED(parent)
return nullptr;
}