[vlmc-devel] Qml: Prevent a local variable from using the same name as a property
Yikai Lu
git at videolan.org
Tue Jul 26 16:12:48 CEST 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Jul 26 21:55:44 2016 +0900| [de74c88f7d26ffb5499337fb74450cdff5e0643a] | committer: Yikai Lu
Qml: Prevent a local variable from using the same name as a property
> https://code.videolan.org/videolan/vlmc/commit/de74c88f7d26ffb5499337fb74450cdff5e0643a
---
src/Gui/timeline/main.qml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Gui/timeline/main.qml b/src/Gui/timeline/main.qml
index 310ad59..7a50c2f 100644
--- a/src/Gui/timeline/main.qml
+++ b/src/Gui/timeline/main.qml
@@ -299,8 +299,8 @@ Rectangle {
}
function dragFinished() {
- var length = selectedClips.length;
- for ( var i = length - 1; i >= 0; --i ) {
+ var _length = selectedClips.length;
+ for ( var i = _length - 1; i >= 0; --i ) {
if ( selectedClips[i] ) {
selectedClips[i].move();
}
More information about the Vlmc-devel
mailing list