To be more correct:<br><br><apaku> tbscope: no, the problem is that TT changes the type of the ref member of QSharedData from QAtomic to QAtomicInt between the two versions.<br><br><br><br><br><br><div><span class="gmail_quote">
On 1/5/08, <b class="gmail_sendername">Tim Beaulen</b> <<a href="mailto:tbscope@gmail.com">tbscope@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
SVN commit 757654 by beaulen:<br><br>In Qt 4.4, QAtomicInt doesn't contain a value member anymore.<br>This change makes KDevelop compile with (the snapshots of) Qt 4.4<br><br>CCMAIL: <a href="mailto:kdevelop-devel@kdevelop.org">
kdevelop-devel@kdevelop.org</a><br><br><br><br> M  +7 -0      environmentmanager.cpp<br><br><br>--- trunk/KDE/kdevelop/languages/cpp/cppduchain/environmentmanager.cpp #757653:757654<br>@@ -460,7 +460,14 @@<br>     return 0;
<br>   }<br>   EnvironmentFilePointer p = lexedFile( url, env, accepter );<br>+#if QT_VERSION >= 0x040400<br>+  /* QAtomicInt doesn't have a value member in Qt 4.4<br>+     Use the int operator to get the value.<br>
+  */<br>+  Q_ASSERT(!p || (int)p->ref > 1);<br>+#else<br>   Q_ASSERT(!p || p->ref.value > 1);<br>+#endif<br>   return p.data();<br> }<br><br></blockquote></div><br>