List Info

Thread: Re: KDE/kdevelop/languages/cpp/cppduchain




Re: KDE/kdevelop/languages/cpp/cppduchain
user name
2008-01-05 10:11:28
To be more correct:

<apaku&gt; tbscope: no, the problem is that TT changes the type of the ref member of QSharedData from QAtomic to QAtomicInt between the two versions.





On 1/5/08, Tim Beaulen < tbscopegmail.com">tbscopegmail.com> wrote:
SVN commit 757654 by beaulen:

In Qt 4.4, QAtomicInt doesn't contain a value member anymore.
This change makes KDevelop compile with (the snapshots of) Qt 4.4

CCMAIL: kdevelop-develkdevelop.org"> kdevelop-develkdevelop.org



M &nbsp;+7 -0 &nbsp; &nbsp;  environmentmanager.cpp


--- trunk/KDE/kdevelop/languages/cpp/cppduchain/environmentmanager.cpp #757653:757654
-460,7 +460,14
 &nbsp; &nbsp; return 0;
 ;  }
 &nbsp; EnvironmentFilePointer p = lexedFile( url, env, accepter );
+#if QT_VERSION >= 0x040400
+  ;/* QAtomicInt doesn't have a value member in Qt 4.4
; &nbsp;  Use the int operator to get the value.
+  ;*/
 Q_ASSERT(!p || (int)p->;ref > 1);
+#else
 &nbsp; Q_ASSERT(!p || p->ref.value > 1);
+#endif
 &nbsp; return p.data();
}


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )