clip: use super macro
Minor code improvement.
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
|
||||
namespace olive {
|
||||
|
||||
#define super Block
|
||||
|
||||
const QString ClipBlock::kBufferIn = QStringLiteral("buffer_in");
|
||||
|
||||
ClipBlock::ClipBlock()
|
||||
@@ -59,10 +61,10 @@ void ClipBlock::InvalidateCache(const TimeRange& range, const QString& from, int
|
||||
rational start = MediaToSequenceTime(range.in());
|
||||
rational end = MediaToSequenceTime(range.out());
|
||||
|
||||
Block::InvalidateCache(TimeRange(start, end), from, element, job_time);
|
||||
super::InvalidateCache(TimeRange(start, end), from, element, job_time);
|
||||
} else {
|
||||
// Otherwise, pass signal along normally
|
||||
Block::InvalidateCache(range, from, element, job_time);
|
||||
super::InvalidateCache(range, from, element, job_time);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +76,7 @@ TimeRange ClipBlock::InputTimeAdjustment(const QString& input, int element, cons
|
||||
return TimeRange(SequenceToMediaTime(input_time.in()), SequenceToMediaTime(input_time.out()));
|
||||
}
|
||||
|
||||
return Block::InputTimeAdjustment(input, element, input_time);
|
||||
return super::InputTimeAdjustment(input, element, input_time);
|
||||
}
|
||||
|
||||
TimeRange ClipBlock::OutputTimeAdjustment(const QString& input, int element, const TimeRange& input_time) const
|
||||
@@ -85,7 +87,7 @@ TimeRange ClipBlock::OutputTimeAdjustment(const QString& input, int element, con
|
||||
return TimeRange(MediaToSequenceTime(input_time.in()), MediaToSequenceTime(input_time.out()));
|
||||
}
|
||||
|
||||
return Block::OutputTimeAdjustment(input, element, input_time);
|
||||
return super::OutputTimeAdjustment(input, element, input_time);
|
||||
}
|
||||
|
||||
NodeValueTable ClipBlock::Value(const QString &output, NodeValueDatabase &value) const
|
||||
@@ -104,7 +106,7 @@ NodeValueTable ClipBlock::Value(const QString &output, NodeValueDatabase &value)
|
||||
|
||||
void ClipBlock::Retranslate()
|
||||
{
|
||||
Block::Retranslate();
|
||||
super::Retranslate();
|
||||
|
||||
SetInputName(kBufferIn, tr("Buffer"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user