[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Attention when porting to cuteIDL
From: David Faure <faure () kde ! org>
Date: 1999-09-24 7:02:25
[Download RAW message or body]
On Fri, Sep 24, 1999 at 01:44:23AM -0500, Lotzi Boloni wrote:
>
> Hi guys
>
> There is a potential to a very hard to debug bug when porting your
> application to cuteIDL.
>
> in your view file, you have to change the signiture to:
>
> virtual bool event( const QCString& _event, const CORBA::Any& _value );
>
> The problem is that the old one, with char* instead of QCString&
> compiles without problems, only that it is not called (actually the
> parent's function is called). This way I ended up with the standard file
> menu and toolbar, instead of the customized one.
>
> I guess that problems like this can happen everywhere where a class
> generated from IDL is overwritten, and as the problem is not detectable
> at compile time and even at runtime may be sort of hidden, extra care is
> needed.
Yes, this is exactly right - too bad C++ doesn't have a way to 'force'
the child's method to be the same as the parent's method. Checking those
is indeed what needs to be done now.
--
David FAURE
david@mandrakesoft.com, faure@kde.org
http://www.insa-lyon.fr/People/AEDI/dfaure/index.html
KDE, Making The Future of Computing Available Today
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic