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:
parent
ceee55836e
commit
2f62fb6d57
3 changed files with 11 additions and 5 deletions
|
@ -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
|
2003-09-09 Mikhail Khodjaiants
|
||||||
Regrouping the launch configuration constants.
|
Regrouping the launch configuration constants.
|
||||||
* ICDTLaunchConfigurationConstants.java
|
* ICDTLaunchConfigurationConstants.java
|
||||||
|
|
|
@ -170,8 +170,9 @@ public class CArrayPartition extends CVariable
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if ( fCDIVariable != null && !(fCDIVariable instanceof ErrorVariable) )
|
ICDIVariableObject varObject = getVariableObject();
|
||||||
fType = new CType( fCDIVariable.getType() );
|
if ( varObject != null )
|
||||||
|
fType = new CType( varObject.getType() );
|
||||||
}
|
}
|
||||||
catch (CDIException e)
|
catch (CDIException e)
|
||||||
{
|
{
|
||||||
|
|
|
@ -212,9 +212,9 @@ public abstract class CVariable extends CDebugElement
|
||||||
{
|
{
|
||||||
if ( fType == null )
|
if ( fType == null )
|
||||||
{
|
{
|
||||||
ICDIVariable var = getCDIVariable();
|
ICDIVariableObject varObject = getCDIVariableObject();
|
||||||
if ( var != null && !(var instanceof ErrorVariable) )
|
if ( varObject != null )
|
||||||
fType = new CType( var.getType() );
|
fType = new CType( varObject.getType() );
|
||||||
}
|
}
|
||||||
return fType;
|
return fType;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue