From deb7cb9d9e79a7cb2ed08bc6e7260928fe8702c0 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 15 Sep 2011 22:00:48 +0300 Subject: [PATCH] Fix compilation error on Windows. --- src/preferences/preferences.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/preferences/preferences.h b/src/preferences/preferences.h index ef672e199..659dfbbf5 100644 --- a/src/preferences/preferences.h +++ b/src/preferences/preferences.h @@ -1070,9 +1070,9 @@ public: // Fallback: Detect python from default locations QStringList supported_versions; supported_versions << "32" << "31" << "30" << "27" << "26" << "25"; - foreach(const v, supported_versions) { + foreach(const QString &v, supported_versions) { if(QFile::exists("C:/Python"+v+"/python.exe")) { - reg_python.setValue(v[0]+"."+v[1]+"/InstallPath/Default", "C:\\Python"+v); + reg_python.setValue(v[0]+"."+v[1]+"/InstallPath/Default", QString("C:\\Python"+v)); return "C:\\Python"+v; } }