summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qlocale.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2012-01-02 22:34:50 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-04 06:01:33 +0100
commite570cad9d7c980ca13f4342c124c06b4bde0e313 (patch)
treef17f784c870dcc6837cfb3c0594803104262df01 /src/corelib/tools/qlocale.cpp
parent01674860ac85a42eb152092c6e99f7ad03346977 (diff)
Deinlined QLocale::operator==
Some time ago this was a blocker that didn't allow to refactor QLocale implementation due without making binary incompatible changes. Deinlining those functions for Qt5, it shouldn't be performance critical code path. Change-Id: I6cb19e32188a2df223d04be0c613a6176ad8d118 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/tools/qlocale.cpp')
-rw-r--r--src/corelib/tools/qlocale.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/corelib/tools/qlocale.cpp b/src/corelib/tools/qlocale.cpp
index d2bb752c6d..595f178009 100644
--- a/src/corelib/tools/qlocale.cpp
+++ b/src/corelib/tools/qlocale.cpp
@@ -775,6 +775,16 @@ QLocale &QLocale::operator=(const QLocale &other)
return *this;
}
+bool QLocale::operator==(const QLocale &other) const
+{
+ return d() == other.d() && numberOptions() == other.numberOptions();
+}
+
+bool QLocale::operator!=(const QLocale &other) const
+{
+ return d() != other.d() || numberOptions() != other.numberOptions();
+}
+
/*!
\since 4.2