[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: kdelibs/kdeui
From: Alexander Kellett <lypanov () kde ! org>
Date: 2003-09-21 19:35:28
[Download RAW message or body]
On Sunday 21 September 2003 13:00, Alexander Kellett wrote:
> > not entirely true for all cases. there is a cast in
> > keditbookmarks that cannot be converted to a static_cast
> > as the compiler simply won't accept it, and is most
> > certainly never anything but the given type. unfortunately
> > i have absolutely no idea why...
On Sun, Sep 21, 2003 at 07:01:11PM +0200, Simon Hausmann wrote:
> Out of curiousity: Where can I find that cast? :)
On Sun, Sep 21, 2003 at 01:12:24PM -0400, George Staikos wrote:
> Which one? In any case, you still have to check for 0 after dynamic_cast.
> We closed enough bugs that were the result of people not checking for 0.
the logic is such that unless a compiler error or some
sort of memory corruption is involved then the value
simply *cannot* be 0.
error with a static_cast:
commands.cpp: In member function `KMacroCommand*
CmdGen::itemsMoved(QPtrList<KEBListViewItem>*, const QString&, bool)':
commands.cpp:514: invalid static_cast from type `KCommand*' to type `
FinalAddressCommand*'
make: *** [commands.lo] Error 1
mvg,
Alex
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic