diff options
author | Grant Gayed <ggayed> | 2010-11-15 21:08:16 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2010-11-15 21:08:16 +0000 |
commit | 07b4e1467fff65b3050b4b9c50f9a916d8642440 (patch) | |
tree | bc9302de0e3cb2d73bfab8537e85418a4ccddf97 /bundles/org.eclipse.swt/Eclipse SWT OLE Win32 | |
parent | b590d64b3ccd7a0955639f7b5d741d1165df644c (diff) | |
download | eclipse.platform.swt-07b4e1467fff65b3050b4b9c50f9a916d8642440.tar.gz eclipse.platform.swt-07b4e1467fff65b3050b4b9c50f9a916d8642440.tar.xz eclipse.platform.swt-07b4e1467fff65b3050b4b9c50f9a916d8642440.zip |
329058 - BrowserFunction should map java null to JS null, not to undefined
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT OLE Win32')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java index 26c2ec7cf7..d7a541f2cf 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java +++ b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java @@ -41,6 +41,17 @@ public final class Variant { private IDispatch dispatchData; private IUnknown unknownData; + /** + * A shared Variant instance with type VT_NULL. + * + * @since 3.7 + */ + public static final Variant NULL; + static { + NULL = new Variant (); + NULL.type = COM.VT_NULL; + } + /** * Invokes platform specific functionality to copy a variant * into operating system memory. @@ -93,7 +104,7 @@ public static Variant win32_new (int /*long*/ pVariant) { * * @since 2.0 */ -public Variant(){ +public Variant() { type = COM.VT_EMPTY; } /** @@ -105,7 +116,6 @@ public Variant(){ public Variant(float val) { type = COM.VT_R4; floatData = val; - } /** * Create a Variant object which represents a Java double as a VT_R8. @@ -899,7 +909,6 @@ public void setByRef(short val) { } COM.MoveMemory(byRefPtr, new short[]{val}, 2); } - void setData(int /*long*/ pData){ if (pData == 0) OLE.error(OLE.ERROR_INVALID_ARGUMENT); @@ -1017,7 +1026,6 @@ void setData(int /*long*/ pData){ break; } } - /** * Returns a string containing a concise, human-readable * description of the receiver. |