minor code improvement

This commit is contained in:
itsmattkc
2018-10-05 02:17:23 +10:00
parent a3cb0d6cb9
commit 9dc7824115
3 changed files with 1 additions and 4 deletions
-1
View File
@@ -756,7 +756,6 @@ bool Project::load_worker(QFile& f, QXmlStreamReader& stream, int type) {
// backwards compatibility code
c->autoscale = false;
c->speed = 1.0;
c->media = NULL;
for (int j=0;j<stream.attributes().size();j++) {
+1
View File
@@ -24,6 +24,7 @@ Clip::Clip(Sequence* s) :
timeline_out(0),
track(0),
undeletable(0),
speed(1.0),
media(NULL),
opening_transition(NULL),
closing_transition(NULL),
-3
View File
@@ -330,7 +330,6 @@ void TimelineWidget::dropEvent(QDropEvent* event) {
c->timeline_out = g.out;
c->clip_in = g.clip_in;
c->track = g.track;
c->speed = 1.0;
if (c->media_type == MEDIA_TYPE_FOOTAGE) {
Media* m = static_cast<Media*>(c->media);
if (m->video_tracks.size() == 0) {
@@ -618,8 +617,6 @@ void TimelineWidget::mouseReleaseEvent(QMouseEvent *event) {
c->color_b = 64;
c->track = g.track;
c->speed = 1.0;
QVector<Clip*> add;
add.append(c);
ca->append(new AddClipCommand(sequence, add));