Commit 4652d902 authored by Gustavo Carneiro's avatar Gustavo Carneiro Committed by Jean-Baptiste Mardelle
Browse files

kdenlive: remove compile warnings

parent 059750ad
Pipeline #22032 passed with stage
in 9 minutes and 24 seconds
...@@ -919,12 +919,11 @@ QVariant KeyframeModel::getInterpolatedValue(const GenTime &pos) const ...@@ -919,12 +919,11 @@ QVariant KeyframeModel::getInterpolatedValue(const GenTime &pos) const
} }
Mlt::Properties mlt_prop; Mlt::Properties mlt_prop;
QString animData; QString animData;
int in = 0;
int out = 0; int out = 0;
bool useOpacity = false; bool useOpacity = false;
if (auto ptr = m_model.lock()) { if (auto ptr = m_model.lock()) {
ptr->passProperties(mlt_prop); ptr->passProperties(mlt_prop);
in = ptr->data(m_index, AssetParameterModel::ParentInRole).toInt(); ptr->data(m_index, AssetParameterModel::ParentInRole).toInt();
out = ptr->data(m_index, AssetParameterModel::ParentDurationRole).toInt(); out = ptr->data(m_index, AssetParameterModel::ParentDurationRole).toInt();
useOpacity = ptr->data(m_index, AssetParameterModel::OpacityRole).toBool(); useOpacity = ptr->data(m_index, AssetParameterModel::OpacityRole).toBool();
animData = ptr->data(m_index, AssetParameterModel::ValueRole).toString(); animData = ptr->data(m_index, AssetParameterModel::ValueRole).toString();
......
...@@ -55,7 +55,7 @@ void KeyframeMonitorHelper::addIndex(const QPersistentModelIndex &index) ...@@ -55,7 +55,7 @@ void KeyframeMonitorHelper::addIndex(const QPersistentModelIndex &index)
m_indexes << index; m_indexes << index;
} }
void KeyframeMonitorHelper::refreshParams(int pos) void KeyframeMonitorHelper::refreshParams(int /* pos */ )
{ {
QVariantList points; QVariantList points;
QVariantList types; QVariantList types;
......
...@@ -2807,7 +2807,6 @@ void TimelineController::updateClipActions() ...@@ -2807,7 +2807,6 @@ void TimelineController::updateClipActions()
if (m_model->isClip(item)) { if (m_model->isClip(item)) {
clip = m_model->getClipPtr(item); clip = m_model->getClipPtr(item);
} }
bool enablePositionActions = positionIsInItem(item);
for (QAction *act : clipActions) { for (QAction *act : clipActions) {
bool enableAction = true; bool enableAction = true;
const QChar actionData = act->data().toChar(); const QChar actionData = act->data().toChar();
......
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