Shared pointers and visitors

Boudewijn Rempt boud at valdyas.org
Thu Apr 21 20:45:42 CEST 2005


On Thursday 21 April 2005 20:29, Casper Boemann wrote:
> On Thursday 21 April 2005 20:27, Boudewijn Rempt wrote:
> > On Thursday 21 April 2005 20:18, Casper Boemann wrote:
> > > On Thursday 21 April 2005 19:46, Boudewijn Rempt wrote:
> > > > Was there a good reason for not using the KisPaintDeviceSP but
> > > > instead a plain pointer in the visitors? I truly don't remember
> > > > anything about it, but if there's no good reason, I might convert the
> > > > visitors to use it.
> > >
> > > well yes - it crashes
> > >
> > > Or rather the kisBackground crashes. The kisbackground constructor uses
> > > an iterator to set the pattern, and when this pointer is destroyed the
> > > background is destroyed, even before the constructor is done.
> >
> > But the background is never zoomed, rotated or transformed, is it?
>
> No - what are you hinting at?

If I remove the visitor tag from the rotate/scale/transform visitors, I'd like 
to make them use the KSharedPtr arguments instead of the plain pointers.

-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20050421/bae96fe0/attachment.pgp


More information about the kimageshop mailing list