1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

Comment adjustments.

This commit is contained in:
Sergey Prigogin 2009-02-16 03:34:07 +00:00
parent d9e8e6d74f
commit d3ad2ee3d7

View file

@ -1486,10 +1486,11 @@ public class CPPTemplates {
* - If A is an array type, the pointer type produced by the array-to-pointer conversion is used instead
* - If A is a function type, the pointer type produced by the function-to-pointer conversion is used instead
* - If A is a cv-qualified type, the top level cv-qualifiers are ignored for type deduction
* @param type
* @param type argument type
* @param parameterIsAReferenceType indicates whether template parameter is a reference type.
* @return
*/
static private IType getArgumentTypeForDeduction(IType type, boolean pIsAReferenceType) {
static private IType getArgumentTypeForDeduction(IType type, boolean parameterIsAReferenceType) {
type = SemanticUtil.getSimplifiedType(type);
if (type instanceof ICPPReferenceType) {
try {
@ -1498,7 +1499,7 @@ public class CPPTemplates {
}
}
IType result = type;
if (!pIsAReferenceType) {
if (!parameterIsAReferenceType) {
try {
if (type instanceof IArrayType) {
result = new CPPPointerType(((IArrayType) type).getType());