summaryrefslogtreecommitdiff
path: root/src/libs/3rdparty
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@digia.com>2013-11-26 17:16:13 +0100
committerNikolai Kosjar <nikolai.kosjar@digia.com>2014-01-03 15:19:08 +0100
commita1c18d9e971069d8e12c7becf1cf8794c9e18cc2 (patch)
treee52994e46a54ff9251dde0dbad64552d06952049 /src/libs/3rdparty
parente6e74b61d7f11044b14ef181d5b0025215a25dc7 (diff)
downloadqt-creator-a1c18d9e971069d8e12c7becf1cf8794c9e18cc2.tar.gz
TypeRewriter: Handle rvalue references correctly
Task-number: QTCREATORBUG-10555 Change-Id: Icb9859f96220f613476c097b747dec8c2d1bc2ed Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/libs/3rdparty')
-rw-r--r--src/libs/3rdparty/cplusplus/Control.h2
-rw-r--r--src/libs/3rdparty/cplusplus/Templates.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/3rdparty/cplusplus/Control.h b/src/libs/3rdparty/cplusplus/Control.h
index d1946e0b52..85b8c3d3d7 100644
--- a/src/libs/3rdparty/cplusplus/Control.h
+++ b/src/libs/3rdparty/cplusplus/Control.h
@@ -91,7 +91,7 @@ public:
PointerType *pointerType(const FullySpecifiedType &elementType);
/// Returns a Type object of type ReferenceType.
- ReferenceType *referenceType(const FullySpecifiedType &elementType, bool rvalueRef = false);
+ ReferenceType *referenceType(const FullySpecifiedType &elementType, bool rvalueRef);
/// Retruns a Type object of type ArrayType.
ArrayType *arrayType(const FullySpecifiedType &elementType, unsigned size = 0);
diff --git a/src/libs/3rdparty/cplusplus/Templates.cpp b/src/libs/3rdparty/cplusplus/Templates.cpp
index 2e9772e191..c9a2c892bd 100644
--- a/src/libs/3rdparty/cplusplus/Templates.cpp
+++ b/src/libs/3rdparty/cplusplus/Templates.cpp
@@ -87,7 +87,7 @@ void CloneType::visit(PointerType *type)
void CloneType::visit(ReferenceType *type)
{
- _type.setType(_control->referenceType(_clone->type(type->elementType(), _subst)));
+ _type.setType(_control->referenceType(_clone->type(type->elementType(), _subst), type->isRvalueReference()));
}
void CloneType::visit(ArrayType *type)