We prefer capitalized drive letters, make it so sooner
authorJoão Abecasis <joao.abecasis@nokia.com>
Fri, 26 Aug 2011 09:03:55 +0000 (11:03 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 20 Oct 2011 14:52:53 +0000 (16:52 +0200)
Reviewed-by: Prasanth Ullattil
(cherry picked from commit 13899108ed57548d3c4f40e595481f8ee76e4fcf)

Change-Id: I70132c19af34715c92718f9b06e4f2dfba28d255
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
src/corelib/io/qfilesystemengine_win.cpp

index 2223d92..4963c5c 100644 (file)
@@ -1048,11 +1048,12 @@ QString QFileSystemEngine::tempPath()
     }
     if (ret.isEmpty()) {
 #if !defined(Q_OS_WINCE)
-        ret = QLatin1String("c:/tmp");
+        ret = QLatin1String("C:/tmp");
 #else
         ret = QLatin1String("/Temp");
 #endif
-    }
+    } else if (ret.length() >= 2 && ret[1] == QLatin1Char(':'))
+        ret[0] = ret.at(0).toUpper(); // Force uppercase drive letters.
     return ret;
 }