[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: kdeutils/khexedit/lib
From: "Friedrich W. H. Kossebau" <Friedrich.W.H () Kossebau ! de>
Date: 2003-10-25 11:02:26
[Download RAW message or body]
Am Samstag, 25. Oktober 2003 03:48 schrieb Scott Wheeler:
> CVS commit by wheeler:
>
> build
>
>
> M +1 -1 khexedit.cpp 1.25
>
>
> --- kdeutils/khexedit/lib/khexedit.cpp #1.24:1.25
> @@ -659,5 +659,5 @@ KBufferDrag *KHexEdit::dragObject( bool
> KCoordRange Range;
>
> - if( ActiveColumn == &textColumn() || !F )
> + if( static_cast<KHE::KTextColumn *>( ActiveColumn ) == &textColumn() ||
> !F ) {
> HC = 0L;
Huh? So one needs to cast a pointer to match a subclass for comparison? Which
compiler does complain about such things?
How could I avoid such a cast?
class KTextColumn: public KBufferColumn ...;
class KHexColumn: public KBufferColumn...;
KTextColumn &textColumn();
KHexColumn &hexColumn();
KBufferColumn *ActiveColumn; // where the cursor is
Friedrich
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic