From d9e51c220ef5c3e6da44b39382a87ff61af5d118 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Sun, 11 Oct 2015 15:07:20 +0300 Subject: [PATCH] Fix compilation on Windows. --- src/core/utils/string.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/utils/string.cpp b/src/core/utils/string.cpp index d0c05329a..046b33d7e 100644 --- a/src/core/utils/string.cpp +++ b/src/core/utils/string.cpp @@ -111,7 +111,7 @@ Utils::String::NaturalCompare::NaturalCompare() #if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)) #if defined(Q_OS_WIN) // Without ICU library, QCollator doesn't support `setNumericMode(true)` on OS older than Win7 - if(SysInfo::windowsVersion() < QSysInfo::WV_WINDOWS7) + if(QSysInfo::windowsVersion() < QSysInfo::WV_WINDOWS7) return; #endif m_collator.setNumericMode(true); @@ -124,7 +124,7 @@ bool Utils::String::NaturalCompare::operator()(const QString &l, const QString & #if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)) #if defined(Q_OS_WIN) // Without ICU library, QCollator doesn't support `setNumericMode(true)` on OS older than Win7 - if(SysInfo::windowsVersion() < QSysInfo::WV_WINDOWS7) + if(QSysInfo::windowsVersion() < QSysInfo::WV_WINDOWS7) return lessThan(l, r); #endif return (m_collator.compare(l, r) < 0);