mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Minor performance optimization.
Change-Id: I9274509f013abda8a7e7950caf204c7398a7476c
This commit is contained in:
parent
24c71972ba
commit
d9a08b007e
1 changed files with 2 additions and 1 deletions
|
@ -839,7 +839,8 @@ public class TemplateArgumentDeduction {
|
||||||
// Try to deduce from the original argument type, but if it fails, fall back to the simplified
|
// Try to deduce from the original argument type, but if it fails, fall back to the simplified
|
||||||
// argument type.
|
// argument type.
|
||||||
return fromType(p.getTypeValue(), a.getOriginalTypeValue(), false, point)
|
return fromType(p.getTypeValue(), a.getOriginalTypeValue(), false, point)
|
||||||
|| fromType(p.getTypeValue(), a.getTypeValue(), false, point);
|
|| (a.getTypeValue() != a.getOriginalTypeValue()
|
||||||
|
&& fromType(p.getTypeValue(), a.getTypeValue(), false, point));
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean fromType(IType p, IType a, boolean allowCVQConversion, IASTNode point) throws DOMException {
|
private boolean fromType(IType p, IType a, boolean allowCVQConversion, IASTNode point) throws DOMException {
|
||||||
|
|
Loading…
Add table
Reference in a new issue