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:
parent
5f589a68a0
commit
8c3d7d87ff
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue