Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikita Nemkin2020-01-22 09:13:14 +0000
committerNikita Nemkin2020-01-25 13:59:05 +0000
commit552c841cdec57d1445d04f981fead6cc3fbd21c8 (patch)
tree478c387292557500d676f7c55b280b3f9d7aa8ab /bundles/org.eclipse.swt/Eclipse SWT Accessibility
parent6f075fa49f18eda277b49fd97bdcba8079b38a28 (diff)
downloadeclipse.platform.swt-552c841cdec57d1445d04f981fead6cc3fbd21c8.tar.gz
eclipse.platform.swt-552c841cdec57d1445d04f981fead6cc3fbd21c8.tar.xz
eclipse.platform.swt-552c841cdec57d1445d04f981fead6cc3fbd21c8.zip
Bug 559392 - Put ERROR_NO_MORE_CALLBACKS check into Callback constructor
It matches SWT convention better and saves many checks in client code. Change-Id: I058cde090966befa564f9ba53b4a613928321f50 Signed-off-by: Nikita Nemkin <nikita@nemkin.ru>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Accessibility')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/SWTAccessibleDelegate.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/SWTAccessibleDelegate.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/SWTAccessibleDelegate.java
index 7e8b9481d5..fe7bba7767 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/SWTAccessibleDelegate.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/cocoa/org/eclipse/swt/accessibility/SWTAccessibleDelegate.java
@@ -46,15 +46,12 @@ class SWTAccessibleDelegate extends NSObject {
accessible2Args = new Callback(clazz, "accessibleProc", 2);
proc2Args = accessible2Args.getAddress();
- if (proc2Args == 0) SWT.error (SWT.ERROR_NO_MORE_CALLBACKS);
accessible3Args = new Callback(clazz, "accessibleProc", 3);
proc3Args = accessible3Args.getAddress();
- if (proc3Args == 0) SWT.error (SWT.ERROR_NO_MORE_CALLBACKS);
accessible4Args = new Callback(clazz, "accessibleProc", 4);
proc4Args = accessible3Args.getAddress();
- if (proc4Args == 0) SWT.error (SWT.ERROR_NO_MORE_CALLBACKS);
// Accessible custom controls need to implement the NSAccessibility protocol. To do that,
// we dynamically add the methods to the control's class that are required

Back to the top