1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 12:55:40 +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(); ICDITarget target = getTarget();
Session session = (Session) (target.getSession()); Session session = (Session) (target.getSession());
SourceManager sourceMgr = (SourceManager) session.getSourceManager(); SourceManager sourceMgr = (SourceManager) session.getSourceManager();
String typename = getTypeName(); String nametype = getTypeName();
try { try {
type = sourceMgr.getType(target, typename); type = sourceMgr.getType(target, nametype);
} catch (CDIException e) { } catch (CDIException e) {
// Try with ptype. // Try with ptype.
try { try {
String ptype = sourceMgr.getDetailTypeName(typename); String ptype = sourceMgr.getDetailTypeName(nametype);
type = sourceMgr.getType(target, ptype); type = sourceMgr.getType(target, ptype);
} catch (CDIException ex) { } catch (CDIException ex) {
} }
} }
if (type == null) { if (type == null) {
type = new IncompleteType(target, typename); type = new IncompleteType(target, nametype);
} }
} }
return type; return type;