Mercurial > projects > dwt-mac
diff dwt/graphics/TextLayout.d @ 151:0ba75290f8ce
Added a bunch of missing defaults to switch statements
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Wed, 10 Jun 2009 21:52:31 +0200 |
parents | 1a0129cab08e |
children | 535243e6d16a |
line wrap: on
line diff
--- a/dwt/graphics/TextLayout.d Wed Jun 10 20:51:17 2009 +0200 +++ b/dwt/graphics/TextLayout.d Wed Jun 10 21:52:31 2009 +0200 @@ -263,6 +263,7 @@ case UNDERLINE_THICK: underlineStyle = OS.NSUnderlineStyleThick; break; + default: } if (underlineStyle !is 0) { textStorage.addAttribute(OS.NSUnderlineStyleAttributeName, NSNumber.numberWithInt(underlineStyle), range); @@ -509,6 +510,7 @@ } break; } + default: } path.stroke(); gc.handle.restoreGraphicsState(); @@ -543,6 +545,7 @@ case DWT.BORDER_SOLID: break; case DWT.BORDER_DASH: dashes = width !is 0 ? GC.LINE_DASH : GC.LINE_DASH_ZERO; break; case DWT.BORDER_DOT: dashes = width !is 0 ? GC.LINE_DOT : GC.LINE_DOT_ZERO; break; + default: } NSBezierPath path = NSBezierPath.bezierPath(); path.setLineDash(dashes.ptr, dashes !is null ? dashes.length : 0, 0);