Mercurial > projects > dwt-mac
diff dwt/accessibility/Accessible.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 | ad4e1fe71a5a |
children |
line wrap: on
line diff
--- a/dwt/accessibility/Accessible.d Wed Jun 10 20:51:17 2009 +0200 +++ b/dwt/accessibility/Accessible.d Wed Jun 10 21:52:31 2009 +0200 @@ -258,12 +258,14 @@ case ACC.ROLE_TABITEM: returnValue.addObject(OS.NSAccessibilityPressAction); break; + default: } switch (event.detail) { case ACC.ROLE_COMBOBOX: returnValue.addObject(OS.NSAccessibilityConfirmAction); break; + default: } @@ -325,6 +327,7 @@ case ACC.ROLE_TABFOLDER: returnValue.addObject(OS.NSAccessibilityValueAttribute); break; + default: } // The following are expected to report their enabled status (AXEnabled) @@ -337,6 +340,7 @@ case ACC.ROLE_COMBOBOX: returnValue.addObject(OS.NSAccessibilityEnabledAttribute); break; + default: } // The following are expected to report a title (AXTitle) @@ -347,6 +351,7 @@ case ACC.ROLE_TABITEM: returnValue.addObject(OS.NSAccessibilityTitleAttribute); break; + default: } // Accessibility verifier says these attributes must be reported for combo boxes. @@ -747,6 +752,7 @@ if (value !is null) returnValue = NSString.stringWith(value); } break; + default: } return returnValue; @@ -1184,6 +1190,7 @@ // FALL THROUGH case '\n': lineNumber++; + default: } } return lineNumber; @@ -1209,6 +1216,7 @@ // FALL THROUGH case '\n': line++; + default: } } range.length = count; @@ -1454,6 +1462,7 @@ case ACC.ROLE_PROGRESSBAR: nsReturnValue = OS.NSAccessibilityProgressIndicatorRole; break; case ACC.ROLE_SLIDER: nsReturnValue = OS.NSAccessibilitySliderRole; break; case ACC.ROLE_LINK: nsReturnValue = OS.NSAccessibilityLinkRole; break; + default: } return nsReturnValue.getString();