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

Yikai Lu luyikei.qmltu at gmail.com
Tue Mar 29 15:41:58 CEST 2016


---
 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 786effd..49e84fa 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -564,7 +564,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 );
 }
 
-- 
1.9.1



More information about the Vlmc-devel mailing list