Commit 84347cb7 authored by Vincent Pinon's avatar Vincent Pinon

Fix GCC warnings

parent dbc365a0
......@@ -271,7 +271,6 @@ void KeyframeView::wheelEvent(QWheelEvent *event)
}
int change = event->delta() > 0 ? -1 : 1;
int pos = qBound(0, m_position + change, m_duration);
int offset = pCore->getItemIn(m_model->getOwnerId());
emit seekToPos(pos);
}
......
......@@ -81,7 +81,7 @@ AssetParameterModel::AssetParameterModel(Mlt::Properties *asset, const QDomEleme
QLocale locale;
if (value.isNull()) {
QVariant defaultValue = parseAttribute(m_ownerId, QStringLiteral("default"), currentParameter);
value = defaultValue.type() == QMetaType::Double ? locale.toString(defaultValue.toDouble()) : defaultValue.toString();
value = defaultValue.type() == QVariant::Double ? locale.toString(defaultValue.toDouble()) : defaultValue.toString();
}
bool isFixed = (type == QLatin1String("fixed"));
if (isFixed) {
......@@ -471,7 +471,7 @@ void AssetParameterModel::setParameters(const QVector<QPair<QString, QVariant>>
{
QLocale locale;
for (const auto &param : params) {
if (param.second.type() == QMetaType::Double) {
if (param.second.type() == QVariant::Double) {
setParameter(param.first, locale.toString(param.second.toDouble()));
} else {
setParameter(param.first, param.second.toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment