KTar/Karchive problem
Adriaan de Groot
groot at kde.org
Tue Apr 19 21:31:27 BST 2005
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.
--
As of September 1st, 2004, the University of Nijmegen will _still_ be the
University of Nijmegen, but with a different nonsensical adjective in front.
Reach me at groot at kde.org instead. GPG FEA2 A3FE
More information about the kde-core-devel
mailing list