dwh? :)

Dirk Mueller mueller@kde.org
Thu, 9 Jan 2003 06:56:32 +0100


On Mit, 08 Jan 2003, David Hyatt wrote:

> Can you explain further why it makes no difference?
> 

> >     case ATTR_MARGINWIDTH:
> >+        // Marginwidth applies to both left and right margins -dwh
> >         addCSSLength(CSS_PROP_MARGIN_RIGHT, attr->value() );
> >+        addCSSLength(CSS_PROP_MARGIN_LEFT, attr->value());
> >         /* nobreak; */
> >     case ATTR_LEFTMARGIN:
> >         addCSSLength(CSS_PROP_MARGIN_LEFT, attr->value() );
> >         break;

there is a "nobreak" here, i.e. this is a "fall through" case. I never 
understood why C/C++ made the fall through case default, a "nobreak;" 
keyword would have made more sense. Oh well..


-- 
Dirk (received 257 mails today)