[vlmc-devel] qml: Don't declare a varible twice

Yikai Lu git at videolan.org
Wed Jun 21 12:56:42 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed Jun 21 19:54:33 2017 +0900| [963f7edfad9e37543e33f3e7c0b088c218c36208] | committer: Yikai Lu

qml: Don't declare a varible twice

> https://code.videolan.org/videolan/vlmc/commit/963f7edfad9e37543e33f3e7c0b088c218c36208
---

 src/Gui/library/ui/ClipLibraryView.qml | 2 +-
 src/Gui/timeline/Track.qml             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Gui/library/ui/ClipLibraryView.qml b/src/Gui/library/ui/ClipLibraryView.qml
index 9b47dbde..a2704769 100644
--- a/src/Gui/library/ui/ClipLibraryView.qml
+++ b/src/Gui/library/ui/ClipLibraryView.qml
@@ -67,7 +67,7 @@ Rectangle {
                     }
                 }
             }
-            for ( var i = 0; i < clips.count; ++i ) {
+            for ( i = 0; i < clips.count; ++i ) {
                 if ( clips[i].uuid === uuid ) {
                     clips.remove( i );
                     break;
diff --git a/src/Gui/timeline/Track.qml b/src/Gui/timeline/Track.qml
index f102f521..407c458c 100644
--- a/src/Gui/timeline/Track.qml
+++ b/src/Gui/timeline/Track.qml
@@ -143,7 +143,7 @@ Item {
                     vClipInfo = findClipFromTrack( "Video", trackId, "videoUuid" );
                     var pos = 0;
                     if ( aClipInfo ) {
-                        var pos = aClipInfo["position"];
+                        pos = aClipInfo["position"];
                         removeClipFromTrack( "Audio", trackId, "audioUuid" );
                     }
                     if ( vClipInfo ) {



More information about the Vlmc-devel mailing list