From f3e220d4c2383f3f20eb60f260cf40308a98ec00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Wed, 20 Nov 2013 13:33:54 +0200 Subject: [PATCH] Set loadAcquire() as const to fix powerpc build Change-Id: Ica1ea565e7eefd2ef378737eb9687ebbf4adf7b0 Fetched-from: https://bugzilla.redhat.com/attachment.cgi?id=812643 Reviewed-by: Thiago Macieira --- src/corelib/thread/qoldbasicatomic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/thread/qoldbasicatomic.h b/src/corelib/thread/qoldbasicatomic.h index b755256ff7..473f1a5b0f 100644 --- a/src/corelib/thread/qoldbasicatomic.h +++ b/src/corelib/thread/qoldbasicatomic.h @@ -63,7 +63,7 @@ public: // Atomic API, implemented in qatomic_XXX.h int load() const { return _q_value; } - int loadAcquire() { return _q_value; } + int loadAcquire() const { return _q_value; } void store(int newValue) { _q_value = newValue; } void storeRelease(int newValue) { _q_value = newValue; } @@ -107,7 +107,7 @@ public: // Atomic API, implemented in qatomic_XXX.h T *load() const { return _q_value; } - T *loadAcquire() { return _q_value; } + T *loadAcquire() const { return _q_value; } void store(T *newValue) { _q_value = newValue; } void storeRelease(T *newValue) { _q_value = newValue; }