compiler warning in kdelibs/khtml/rendering/render_block.cpp

André Wöbbeking Woebbeking at onlinehome.de
Sat Apr 23 14:41:04 BST 2005


Hi,

I get the following warning:

render_block.cpp: In member function `void khtml::RenderBlock::layoutBlockChildren(bool)':
render_block.cpp:720: warning: unused variable 's'

Is s really unused or should it be used instead of style() in

            RenderStyle* s = child->style();

            if ( child->isBox() && child->hasStaticX()) {
               if (style()->direction() == LTR)            <------------------- maybe s->direction()???
                    static_cast<RenderBox*>( child )->setStaticX(xPos);
                else
                    static_cast<RenderBox*>( child )->setStaticX(borderRight()+paddingRight());
            }


Please CC me as I'm not subscribed to the list.


Cheers,
André




More information about the kfm-devel mailing list