summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-01-28 09:37:25 -0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-30 05:27:44 +0000
commit2fde68531c91bb6ab060483225b0f5e62e936f62 (patch)
treee641e743de009968bae3e710f2f59e6df29baa9a
parentee53b3b6fb1be2e0e4026265604ba3bbfc9dbc0b (diff)
QVersionNumber: remove the "pure" attribute from commonPrefix()
This function can allocate memory, so it's not pure. Change-Id: I6fcda969a9e9427198bffffd16ce7fcff3ae021d Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit 671035035a6f1846c05e052e4e745d5cb2b41306) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/corelib/tools/qversionnumber.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qversionnumber.h b/src/corelib/tools/qversionnumber.h
index c5d074e7d5..d7fbad17bc 100644
--- a/src/corelib/tools/qversionnumber.h
+++ b/src/corelib/tools/qversionnumber.h
@@ -268,7 +268,7 @@ public:
[[nodiscard]] Q_CORE_EXPORT static int compare(const QVersionNumber &v1, const QVersionNumber &v2) noexcept;
- [[nodiscard]] Q_CORE_EXPORT static Q_DECL_PURE_FUNCTION QVersionNumber commonPrefix(const QVersionNumber &v1, const QVersionNumber &v2);
+ [[nodiscard]] Q_CORE_EXPORT static QVersionNumber commonPrefix(const QVersionNumber &v1, const QVersionNumber &v2);
[[nodiscard]] Q_CORE_EXPORT QString toString() const;
#if QT_STRINGVIEW_LEVEL < 2