diff options
author | Sergio Ahumada <sergio.ahumada@nokia.com> | 2012-09-04 19:39:07 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-05 03:03:05 +0200 |
commit | 56d5c909af6473be64a1ae487b45bd444a9a8553 (patch) | |
tree | d3032f82ce180b58791d7fcefba5e90f1d00a943 /src/corelib/io/qstandardpaths_win.cpp | |
parent | 10ed50002c2ad6f4caaa7b922af5a9f1d3d91f52 (diff) |
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 <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qstandardpaths_win.cpp')
-rw-r--r-- | src/corelib/io/qstandardpaths_win.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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()) |