QFont: Fix build with QFONTCACHE_DEBUG
authorKonstantin Ritt <ritt.ks@gmail.com>
Thu, 11 Oct 2012 22:19:34 +0000 (01:19 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 13 Oct 2012 01:18:58 +0000 (03:18 +0200)
Change-Id: Ifc89af71cdf6a5f9e4114266030cf265042db626
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
src/gui/text/qfont.cpp

index 65368fd..a2132f0 100644 (file)
@@ -2768,7 +2768,7 @@ void QFontCache::timerEvent(QTimerEvent *)
                                       end = engineDataCache.constEnd();
         for (; it != end; ++it) {
 #ifdef QFONTCACHE_DEBUG
-            FC_DEBUG("    %p: ref %2d", it.value(), int(it.value()->ref));
+            FC_DEBUG("    %p: ref %2d", it.value(), int(it.value()->ref.load()));
 
 #endif // QFONTCACHE_DEBUG