1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Final fix for PR 39484: Move 'getType' method from ICDIVariable to ICDIVaraibleObject.

This commit is contained in:
Mikhail Khodjaiants 2003-09-09 17:39:19 +00:00
parent ceee55836e
commit 2f62fb6d57
3 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2003-09-09 Mikhail Khodjaiants
Final fix for PR 39484: Move 'getType' method from ICDIVariable to ICDIVaraibleObject.
* CArrayPartition.java
* CVariable.java
2003-09-09 Mikhail Khodjaiants
Regrouping the launch configuration constants.
* ICDTLaunchConfigurationConstants.java

View file

@ -170,8 +170,9 @@ public class CArrayPartition extends CVariable
{
try
{
if ( fCDIVariable != null && !(fCDIVariable instanceof ErrorVariable) )
fType = new CType( fCDIVariable.getType() );
ICDIVariableObject varObject = getVariableObject();
if ( varObject != null )
fType = new CType( varObject.getType() );
}
catch (CDIException e)
{

View file

@ -212,9 +212,9 @@ public abstract class CVariable extends CDebugElement
{
if ( fType == null )
{
ICDIVariable var = getCDIVariable();
if ( var != null && !(var instanceof ErrorVariable) )
fType = new CType( var.getType() );
ICDIVariableObject varObject = getCDIVariableObject();
if ( varObject != null )
fType = new CType( varObject.getType() );
}
return fType;
}