1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

refactorin the name to avoid confusion.

This commit is contained in:
Alain Magloire 2003-08-20 01:22:21 +00:00
parent 5f589a68a0
commit 8c3d7d87ff

View file

@ -148,19 +148,19 @@ public class VariableObject extends CObject implements ICDIVariableObject {
ICDITarget target = getTarget();
Session session = (Session) (target.getSession());
SourceManager sourceMgr = (SourceManager) session.getSourceManager();
String typename = getTypeName();
String nametype = getTypeName();
try {
type = sourceMgr.getType(target, typename);
type = sourceMgr.getType(target, nametype);
} catch (CDIException e) {
// Try with ptype.
try {
String ptype = sourceMgr.getDetailTypeName(typename);
String ptype = sourceMgr.getDetailTypeName(nametype);
type = sourceMgr.getType(target, ptype);
} catch (CDIException ex) {
}
}
if (type == null) {
type = new IncompleteType(target, typename);
type = new IncompleteType(target, nametype);
}
}
return type;