[vlmc-devel] Use C++11-style for-loop

Yikai Lu git at videolan.org
Sat Apr 2 11:39:20 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Mar 29 22:41:58 2016 +0900| [7ecf6b32e5ee0be88bf015acb9b5a73c76109bcb] | committer: Hugo Beauzée-Luyssen

Use C++11-style for-loop

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> https://code.videolan.org/videolan/vlmc/commit/7ecf6b32e5ee0be88bf015acb9b5a73c76109bcb
---

 src/Gui/MainWindow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 247e5c7..d3d93fd 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -565,7 +565,7 @@ MainWindow::clearTemporaryFiles()
 {
     QDir dirUtil;
     if( dirUtil.cd( VLMC_GET_STRING( "vlmc/TempFolderLocation" ) ) )
-        foreach ( const QString &file, dirUtil.entryList( QDir::Files ) )
+        for ( const QString& file: dirUtil.entryList( QDir::Files ) )
             dirUtil.remove( file );
 }
 



More information about the Vlmc-devel mailing list