Mercurial > projects > dwt-addons
diff dwtx/jface/util/Geometry.d @ 192:c3583c6ec027
Added missing default cases for switch statements
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 03 Nov 2008 22:52:26 +0100 |
parents | 46a6e0e6ccd4 |
children |
line wrap: on
line diff
--- a/dwtx/jface/util/Geometry.d Tue Oct 28 23:59:57 2008 +0100 +++ b/dwtx/jface/util/Geometry.d Mon Nov 03 22:52:26 2008 +0100 @@ -135,6 +135,7 @@ return new Point(-distance, 0); case DWT.RIGHT: return new Point(distance, 0); + default: } return new Point(0, 0); @@ -406,6 +407,7 @@ return testPoint.x - rectangle.x; case DWT.RIGHT: return rectangle.x + rectangle.width - testPoint.x; + default: } return 0; @@ -443,6 +445,7 @@ case DWT.BOTTOM: bounds.y = toExtrude.y + toExtrude.height - bounds.height; break; + default: } normalize(bounds); @@ -468,6 +471,7 @@ return DWT.RIGHT; case DWT.RIGHT: return DWT.LEFT; + default: } return swtDirectionConstant;