[haiku-development] Re: Issue adding deskbar replicant from a server
- From: looncraz <looncraz@xxxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Fri, 20 Jan 2017 11:25:33 -0600
On 1/20/2017 08:53, Dario Casalinuovo wrote:
Even if the return type doesn't affect the binary so the function is
found correctly, the bebook states BArchivable::Instantiate should
always return a BArchivable* object.
DeskbarShelfView *IS* a BArchivable via the magic of inheritance
(BView:BHandler:BArchivable, IIRC).
Returning a non-BArchivable object would cause problems aplenty.
Other related posts: