diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-11-17 14:37:45 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-11-17 14:37:45 +0100 |
commit | f9f990914dfa758fc9a610f5796c34a56672d5e3 (patch) | |
tree | 6a4a103b33ff740bb216d5b02d689eabc43b7398 /src/shared/cplusplus/Control.h | |
parent | f2c4d84c6c5773c8012f5542cd0dc08f652a23aa (diff) | |
download | qt-creator-f9f990914dfa758fc9a610f5796c34a56672d5e3.tar.gz |
Pass the fully specified type as const reference.
Diffstat (limited to 'src/shared/cplusplus/Control.h')
-rw-r--r-- | src/shared/cplusplus/Control.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/cplusplus/Control.h b/src/shared/cplusplus/Control.h index 6abeb8ef6d..c13719f2d5 100644 --- a/src/shared/cplusplus/Control.h +++ b/src/shared/cplusplus/Control.h @@ -82,7 +82,7 @@ public: OperatorNameId *operatorNameId(int operatorId); /// Returns the canonical conversion name id. - ConversionNameId *conversionNameId(FullySpecifiedType type); + ConversionNameId *conversionNameId(const FullySpecifiedType &type); /// Returns the canonical qualified name id. QualifiedNameId *qualifiedNameId(Name *const *names, @@ -107,13 +107,13 @@ public: FullySpecifiedType elementType); /// Returns a Type object of type PointerType. - PointerType *pointerType(FullySpecifiedType elementType); + PointerType *pointerType(const FullySpecifiedType &elementType); /// Returns a Type object of type ReferenceType. - ReferenceType *referenceType(FullySpecifiedType elementType); + ReferenceType *referenceType(const FullySpecifiedType &elementType); /// Retruns a Type object of type ArrayType. - ArrayType *arrayType(FullySpecifiedType elementType, size_t size = 0); + ArrayType *arrayType(const FullySpecifiedType &elementType, size_t size = 0); /// Returns a Type object of type NamedType. NamedType *namedType(Name *name); |