[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: New KDE printing system
From: Peter Putzer <pputzer () edu ! uni-klu ! ac ! at>
Date: 2001-02-28 19:09:55
[Download RAW message or body]
On Wed, 28 Feb 2001, Michael Goffioul wrote:
> Bernd Gehrmann wrote:
>
> > On Wed, 28 Feb 2001, Michael Goffioul wrote:
> > > I don't think it is really tricky to write:
> > >
> > > KPrinter *printer = KPrinterFactory::self()->printer();
> > > <do whatever you want with the KPrinter object, except deleting it>;
> >
> > It's even less tricky if you make the destructor non-public :-)
>
> Yes. To avoid any problem KPrinter constructors and desctructor will be
> tagged "protected". Only the factory will then be responsible for KPrinter
> object.
Beware! egcs has problems with non-public d'tors and c'tors (at least for
classes without any "friends")!
regards,
Peter
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic