Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/ITypeInfo.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/ITypeInfo.java40
1 files changed, 20 insertions, 20 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/ITypeInfo.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/ITypeInfo.java
index e1690ee8f3..6f9e415857 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/ITypeInfo.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/ITypeInfo.java
@@ -20,16 +20,16 @@ import org.eclipse.swt.internal.win32.*;
public class ITypeInfo extends IUnknown
{
-public ITypeInfo(long /*int*/ address) {
+public ITypeInfo(long address) {
super(address);
}
public int GetDocumentation(int index, String[] name, String[] docString, int[] pdwHelpContext, String[] helpFile ) {
- long /*int*/[] pBstrName = null;
- if (name != null) pBstrName = new long /*int*/[1];
- long /*int*/[] pBstrDocString = null;
- if (docString != null) pBstrDocString = new long /*int*/[1];
- long /*int*/[] pBstrHelpFile = null;
- if (helpFile != null) pBstrHelpFile = new long /*int*/[1];
+ long[] pBstrName = null;
+ if (name != null) pBstrName = new long[1];
+ long[] pBstrDocString = null;
+ if (docString != null) pBstrDocString = new long[1];
+ long[] pBstrHelpFile = null;
+ if (helpFile != null) pBstrHelpFile = new long[1];
int rc = COM.VtblCall(12, address, index, pBstrName, pBstrDocString, pdwHelpContext, pBstrHelpFile);
if (name != null && pBstrName[0] != 0) {
int size = COM.SysStringByteLen(pBstrName[0]);
@@ -72,7 +72,7 @@ public int GetDocumentation(int index, String[] name, String[] docString, int[]
}
return rc;
}
-public int GetFuncDesc(int index, long /*int*/[] ppFuncDesc) {
+public int GetFuncDesc(int index, long[] ppFuncDesc) {
return OS.VtblCall(5, address, index, ppFuncDesc);
}
public int GetIDsOfNames(String[] rgszNames, int cNames, int[] pMemId) {
@@ -81,9 +81,9 @@ public int GetIDsOfNames(String[] rgszNames, int cNames, int[] pMemId) {
int size = rgszNames.length;
// create an array to hold the addresses
- long /*int*/ hHeap = OS.GetProcessHeap();
- long /*int*/ ppNames = OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, size * C.PTR_SIZEOF);
- long /*int*/[] memTracker = new long /*int*/[size];
+ long hHeap = OS.GetProcessHeap();
+ long ppNames = OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, size * C.PTR_SIZEOF);
+ long[] memTracker = new long[size];
try {
// add the address of each string to the array
@@ -94,10 +94,10 @@ public int GetIDsOfNames(String[] rgszNames, int cNames, int[] pMemId) {
buffer = new char[nameSize +1];
rgszNames[i].getChars(0, nameSize, buffer, 0);
// get the address of the start of the array of char
- long /*int*/ pName = OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, buffer.length * 2);
+ long pName = OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, buffer.length * 2);
OS.MoveMemory(pName, buffer, buffer.length * 2);
// copy the address to the array of addresses
- OS.MoveMemory(ppNames + C.PTR_SIZEOF * i, new long /*int*/[]{pName}, C.PTR_SIZEOF);
+ OS.MoveMemory(ppNames + C.PTR_SIZEOF * i, new long[]{pName}, C.PTR_SIZEOF);
// keep track of the Global Memory so we can free it
memTracker[i] = pName;
}
@@ -119,7 +119,7 @@ public int GetImplTypeFlags(int index, int[] pImplTypeFlags) {
public int GetNames(int memid, String[] names, int cMaxNames, int[] pcNames){
int nameSize = names.length;
- long /*int*/[] rgBstrNames = new long /*int*/[nameSize];
+ long[] rgBstrNames = new long[nameSize];
int rc = COM.VtblCall(7, address, memid, rgBstrNames, nameSize, pcNames);
if (rc == COM.S_OK) {
@@ -140,25 +140,25 @@ public int GetNames(int memid, String[] names, int cMaxNames, int[] pcNames){
return rc;
}
-public int GetRefTypeInfo(int hRefType, long /*int*/[] ppTInfo) {
+public int GetRefTypeInfo(int hRefType, long[] ppTInfo) {
return OS.VtblCall(14, address, hRefType, ppTInfo);
}
public int GetRefTypeOfImplType(int index, int[] pRefType) {
return OS.VtblCall(8, address, index, pRefType);
}
-public int GetTypeAttr(long /*int*/[] ppTypeAttr) {
+public int GetTypeAttr(long[] ppTypeAttr) {
return OS.VtblCall(3, address, ppTypeAttr);
}
-public int GetVarDesc(int index, long /*int*/[] ppVarDesc ) {
+public int GetVarDesc(int index, long[] ppVarDesc ) {
return OS.VtblCall(6, address, index, ppVarDesc);
}
-public int ReleaseFuncDesc(long /*int*/ pFuncDesc ) {
+public int ReleaseFuncDesc(long pFuncDesc ) {
return OS.VtblCall(20, address, pFuncDesc);
}
-public int ReleaseTypeAttr(long /*int*/ pTypeAttr) {
+public int ReleaseTypeAttr(long pTypeAttr) {
return OS.VtblCall(19, address, pTypeAttr);
}
-public int ReleaseVarDesc(long /*int*/ pVarDesc ) {
+public int ReleaseVarDesc(long pVarDesc ) {
return OS.VtblCall(21, address, pVarDesc);
}
}

Back to the top