Pass the fully specified type as const reference.

This commit is contained in:
Roberto Raggi
2009-11-17 14:37:45 +01:00
parent f2c4d84c6c
commit f9f990914d
10 changed files with 31 additions and 31 deletions

View File

@@ -86,7 +86,7 @@ ExpressionAST *CheckExpression::switchExpression(ExpressionAST *expression)
return previousExpression;
}
FullySpecifiedType CheckExpression::switchFullySpecifiedType(FullySpecifiedType type)
FullySpecifiedType CheckExpression::switchFullySpecifiedType(const FullySpecifiedType &type)
{
FullySpecifiedType previousType = _fullySpecifiedType;
_fullySpecifiedType = type;