KTar/Karchive problem

Albert Astals Cid astals11 at terra.es
Tue Apr 19 22:54:00 BST 2005


Anyone has anything better to suggest?

If not may i commit this patch?

Albert

A Dimarts 19 Abril 2005 22:31, Adriaan de Groot va escriure:
> On Tuesday 19 April 2005 18:12, Albert Astals Cid wrote:
> > karchive has
> >     virtual void close();
> > that calls
> >     virtual bool closeArchive();
> > that classes that inherit have to implement.
> >
> > The problem is that in KTar, closeArchive can fail and return false but
> > the application has no way to know, as close() is void.
> >
> > Am i wrong? Or is this a bug? If it has to be fixed can this be changed
> > in a binary compatible way?
>
> You can add a non-virtual member function closeSucceeded() and maintain the
> result of the closeArchive() call in the private data d-pointer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: karchive.patch
Type: text/x-diff
Size: 1561 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050419/43069b29/attachment.patch>


More information about the kde-core-devel mailing list