diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-03-23 12:11:33 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-03-23 12:12:07 +0100 |
commit | 4b8d59719624271c1e70ba93294016fb593601f5 (patch) | |
tree | 6f8cf60ee992f620bffe561138a5f61e9f37fefd /src/shared/cplusplus/Control.cpp | |
parent | 21c13328d3c5cf902734045394aa0a976aaf8db2 (diff) | |
download | qt-creator-4b8d59719624271c1e70ba93294016fb593601f5.tar.gz |
Recognize C++0x rvalue references.
Diffstat (limited to 'src/shared/cplusplus/Control.cpp')
-rw-r--r-- | src/shared/cplusplus/Control.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/cplusplus/Control.cpp b/src/shared/cplusplus/Control.cpp index 7a3d901b4d..cbe80074fe 100644 --- a/src/shared/cplusplus/Control.cpp +++ b/src/shared/cplusplus/Control.cpp @@ -307,9 +307,9 @@ public: return pointerTypes.intern(PointerType(elementType)); } - ReferenceType *findOrInsertReferenceType(const FullySpecifiedType &elementType) + ReferenceType *findOrInsertReferenceType(const FullySpecifiedType &elementType, bool rvalueRef) { - return referenceTypes.intern(ReferenceType(elementType)); + return referenceTypes.intern(ReferenceType(elementType, rvalueRef)); } ArrayType *findOrInsertArrayType(const FullySpecifiedType &elementType, unsigned size) @@ -648,8 +648,8 @@ PointerToMemberType *Control::pointerToMemberType(const Name *memberName, const PointerType *Control::pointerType(const FullySpecifiedType &elementType) { return d->findOrInsertPointerType(elementType); } -ReferenceType *Control::referenceType(const FullySpecifiedType &elementType) -{ return d->findOrInsertReferenceType(elementType); } +ReferenceType *Control::referenceType(const FullySpecifiedType &elementType, bool rvalueRef) +{ return d->findOrInsertReferenceType(elementType, rvalueRef); } ArrayType *Control::arrayType(const FullySpecifiedType &elementType, unsigned size) { return d->findOrInsertArrayType(elementType, size); } |