From f8155c116dd561fda700f81b747f68a8bc50f6f7 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 11 Oct 2016 17:43:03 +0200 Subject: [PATCH] Changed: Little optimization --HG-- branch : develop --- code/ryzom/tools/client/ryzom_installer/src/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ryzom/tools/client/ryzom_installer/src/utils.cpp b/code/ryzom/tools/client/ryzom_installer/src/utils.cpp index e735862a0..9a08b4ac8 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/utils.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/utils.cpp @@ -54,7 +54,7 @@ bool isDirectoryEmpty(const QString &directory, bool recursize) // process all files and directories excepted parent and current ones QFileInfoList list = dir.entryInfoList(QDir::Files | QDir::Dirs | QDir::Hidden | QDir::NoSymLinks | QDir::NoDotAndDotDot); - for (int i = 0; i < list.size(); ++i) + for (int i = 0, len = list.size(); i < len; ++i) { QFileInfo fileInfo = list.at(i);