[kdevplatform] language/duchain/navigation: Make the AbstractNavigationContext a KShared instead of KSharedObject
Aleix Pol
aleixpol at kde.org
Thu Oct 24 19:46:08 UTC 2013
On Thu, Oct 24, 2013 at 6:49 PM, Milian Wolff <mail at milianw.de> wrote:
> On Thursday 24 October 2013 15:58:10 Aleix Pol wrote:
> > Git commit a8859089ddac283ef0a3b2d886609cc4705e87ff by Aleix Pol.
> > Committed on 24/10/2013 at 15:53.
> > Pushed by apol into branch 'master'.
> >
> > Make the AbstractNavigationContext a KShared instead of KSharedObject
> >
> > Fixes crash when hovering a preprocessor macro, the tooltip destruction
> > would crash.
> >
> > BUG: 326472
>
> <snip>
>
> > -class KDEVPLATFORMLANGUAGE_EXPORT AbstractNavigationContext : public
> > QObject, public KSharedObject
> > +class KDEVPLATFORMLANGUAGE_EXPORT
> > AbstractNavigationContext : public QObject, public KShared {
> > Q_OBJECT
> > public:
>
> Why is this "shared" at all? If it's a QObject you don't have value
> semantics
> anyways (cf. Q_DISABLE_COPY). With pointer semantics, you don't need
> "sharing"
> or am I missing something?
>
> Bye
>
> --
> Milian Wolff
> mail at milianw.de
> http://milianw.de
> _______________________________________________
> KDevelop-devel mailing list
> KDevelop-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kdevelop-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20131024/08737965/attachment.html>
More information about the KDevelop-devel
mailing list