1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Change the name of the argument for length to represent

it is no the index of the array but rather the length.
This commit is contained in:
Alain Magloire 2003-03-17 18:50:00 +00:00
parent 7f4a0f7c22
commit 71ff91b833

View file

@ -293,7 +293,7 @@ public class VariableManager extends SessionObject implements ICDIVariableManage
/**
* @see org.eclipse.cdt.debug.core.cdi.ICDIVariableManager#getVariableObjectAsArray(ICDIVariableObject, String, int, int)
*/
public ICDIVariableObject getVariableObjectAsArray(ICDIVariableObject object, String type, int start, int end) throws CDIException {
public ICDIVariableObject getVariableObjectAsArray(ICDIVariableObject object, String type, int start, int length) throws CDIException {
VariableObject obj = null;
if (object instanceof VariableObject) {
obj = (VariableObject)object;
@ -326,7 +326,7 @@ public class VariableManager extends SessionObject implements ICDIVariableManage
buffer.append('+').append(start);
}
buffer.append(')');
buffer.append('@').append(end - start);
buffer.append('@').append(length - start);
return new VariableObject(obj, buffer.toString());
}
throw new CDIException("Unknown variable object");