diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-07-18 11:55:01 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-07-20 13:15:58 +0200 |
commit | 1a40bc37d4c0fa8a79460411635ec02e74215ede (patch) | |
tree | 3383e014c055b994e918e231d3d25c5dfdb580dc /src/corelib/text/qlocale_win.cpp | |
parent | 424438a220164cac23ca76d65bd64de4d59a035b (diff) |
QLocale/Win: replace 0 with nullptr in winLangCodeToIsoName()
The function returns a pointer, not an integer.
Found while working on QTBUG-103721.
Change-Id: I18a9987d99c645a5b410c4b11128bfebcc5dcddd
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/text/qlocale_win.cpp')
-rw-r--r-- | src/corelib/text/qlocale_win.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/text/qlocale_win.cpp b/src/corelib/text/qlocale_win.cpp index 338d18bdcb..0984e82267 100644 --- a/src/corelib/text/qlocale_win.cpp +++ b/src/corelib/text/qlocale_win.cpp @@ -1019,7 +1019,7 @@ static const char *winLangCodeToIsoName(int code) { int cmp = code - windows_to_iso_list[0].windows_code; if (cmp < 0) - return 0; + return nullptr; if (cmp == 0) return windows_to_iso_list[0].iso_name; @@ -1031,7 +1031,7 @@ static const char *winLangCodeToIsoName(int code) if (it != std::end(windows_to_iso_list) && !ByWindowsCode{}(code, *it)) return it->iso_name; - return 0; + return nullptr; } |