From 56d5c909af6473be64a1ae487b45bd444a9a8553 Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Tue, 4 Sep 2012 19:39:07 +0200 Subject: Use true and false in preference to TRUE and FALSE The TRUE and FALSE macros are obsolete and should be replaced with true and false (all lower case) respectively. Change-Id: Iee352e8173500683e6319be0abbf5bacf29016e0 Reviewed-by: Thiago Macieira --- src/corelib/io/qstandardpaths_win.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/corelib/io/qstandardpaths_win.cpp') diff --git a/src/corelib/io/qstandardpaths_win.cpp b/src/corelib/io/qstandardpaths_win.cpp index f918e02880..53d328b664 100644 --- a/src/corelib/io/qstandardpaths_win.cpp +++ b/src/corelib/io/qstandardpaths_win.cpp @@ -100,9 +100,9 @@ QString QStandardPaths::writableLocation(StandardLocation type) case DataLocation: case GenericDataLocation: #if defined Q_OS_WINCE - if (SHGetSpecialFolderPath(0, path, CSIDL_APPDATA, FALSE)) + if (SHGetSpecialFolderPath(0, path, CSIDL_APPDATA, false)) #else - if (SHGetSpecialFolderPath(0, path, CSIDL_LOCAL_APPDATA, FALSE)) + if (SHGetSpecialFolderPath(0, path, CSIDL_LOCAL_APPDATA, false)) #endif result = convertCharArray(path); if (isTestModeEnabled()) @@ -116,38 +116,38 @@ QString QStandardPaths::writableLocation(StandardLocation type) break; case DesktopLocation: - if (SHGetSpecialFolderPath(0, path, CSIDL_DESKTOPDIRECTORY, FALSE)) + if (SHGetSpecialFolderPath(0, path, CSIDL_DESKTOPDIRECTORY, false)) result = convertCharArray(path); break; case DownloadLocation: // TODO implement with SHGetKnownFolderPath(FOLDERID_Downloads) (starting from Vista) case DocumentsLocation: - if (SHGetSpecialFolderPath(0, path, CSIDL_PERSONAL, FALSE)) + if (SHGetSpecialFolderPath(0, path, CSIDL_PERSONAL, false)) result = convertCharArray(path); break; case FontsLocation: - if (SHGetSpecialFolderPath(0, path, CSIDL_FONTS, FALSE)) + if (SHGetSpecialFolderPath(0, path, CSIDL_FONTS, false)) result = convertCharArray(path); break; case ApplicationsLocation: - if (SHGetSpecialFolderPath(0, path, CSIDL_PROGRAMS, FALSE)) + if (SHGetSpecialFolderPath(0, path, CSIDL_PROGRAMS, false)) result = convertCharArray(path); break; case MusicLocation: - if (SHGetSpecialFolderPath(0, path, CSIDL_MYMUSIC, FALSE)) + if (SHGetSpecialFolderPath(0, path, CSIDL_MYMUSIC, false)) result = convertCharArray(path); break; case MoviesLocation: - if (SHGetSpecialFolderPath(0, path, CSIDL_MYVIDEO, FALSE)) + if (SHGetSpecialFolderPath(0, path, CSIDL_MYVIDEO, false)) result = convertCharArray(path); break; case PicturesLocation: - if (SHGetSpecialFolderPath(0, path, CSIDL_MYPICTURES, FALSE)) + if (SHGetSpecialFolderPath(0, path, CSIDL_MYPICTURES, false)) result = convertCharArray(path); break; @@ -186,7 +186,7 @@ QStringList QStandardPaths::standardLocations(StandardLocation type) case ConfigLocation: // same as DataLocation, on Windows case DataLocation: case GenericDataLocation: - if (SHGetSpecialFolderPath(0, path, CSIDL_COMMON_APPDATA, FALSE)) { + if (SHGetSpecialFolderPath(0, path, CSIDL_COMMON_APPDATA, false)) { QString result = convertCharArray(path); if (type != GenericDataLocation) { if (!QCoreApplication::organizationName().isEmpty()) -- cgit v1.2.3