KDE/kdevelop/languages/cpp/cppduchain
Tim Beaulen
tbscope at gmail.com
Sat Jan 5 16:11:28 UTC 2008
To be more correct:
<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.
On 1/5/08, Tim Beaulen <tbscope at gmail.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-devel at kdevelop.org
>
>
>
> M +7 -0 environmentmanager.cpp
>
>
> --- trunk/KDE/kdevelop/languages/cpp/cppduchain/environmentmanager.cpp
> #757653:757654
> @@ -460,7 +460,14 @@
> return 0;
> }
> EnvironmentFilePointer p = lexedFile( url, env, accepter );
> +#if QT_VERSION >= 0x040400
> + /* QAtomicInt doesn't have a value member in Qt 4.4
> + Use the int operator to get the value.
> + */
> + Q_ASSERT(!p || (int)p->ref > 1);
> +#else
> Q_ASSERT(!p || p->ref.value > 1);
> +#endif
> return p.data();
> }
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20080105/981b6771/attachment.html>
More information about the KDevelop-devel
mailing list