From 2252e4b8c9530d3412b879702c0ac408f03f2a20 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 19 Apr 2010 09:40:38 +0200 Subject: [PATCH] CPlusPlus: Transfer cv qualifiers from Function to FullySpecifiedType. Reviewed-by: Roberto Raggi --- src/shared/cplusplus/Symbols.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/shared/cplusplus/Symbols.cpp b/src/shared/cplusplus/Symbols.cpp index 8f2400976d9..e97f13d3633 100644 --- a/src/shared/cplusplus/Symbols.cpp +++ b/src/shared/cplusplus/Symbols.cpp @@ -289,7 +289,12 @@ bool Function::matchType0(const Type *otherType, TypeMatcher *matcher) const } FullySpecifiedType Function::type() const -{ return FullySpecifiedType(const_cast(this)); } +{ + FullySpecifiedType ty(const_cast(this)); + ty.setConst(isConst()); + ty.setVolatile(isVolatile()); + return ty; +} FullySpecifiedType Function::returnType() const { return _returnType; }