summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Symbols.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-11-17 14:37:45 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2009-11-17 14:37:45 +0100
commitf9f990914dfa758fc9a610f5796c34a56672d5e3 (patch)
tree6a4a103b33ff740bb216d5b02d689eabc43b7398 /src/shared/cplusplus/Symbols.cpp
parentf2c4d84c6c5773c8012f5542cd0dc08f652a23aa (diff)
downloadqt-creator-f9f990914dfa758fc9a610f5796c34a56672d5e3.tar.gz
Pass the fully specified type as const reference.
Diffstat (limited to 'src/shared/cplusplus/Symbols.cpp')
-rw-r--r--src/shared/cplusplus/Symbols.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/cplusplus/Symbols.cpp b/src/shared/cplusplus/Symbols.cpp
index 819c8730ed..8ee8572d9b 100644
--- a/src/shared/cplusplus/Symbols.cpp
+++ b/src/shared/cplusplus/Symbols.cpp
@@ -117,7 +117,7 @@ TemplateParameters *Declaration::templateParameters() const
void Declaration::setTemplateParameters(TemplateParameters *templateParameters)
{ _templateParameters = templateParameters; }
-void Declaration::setType(FullySpecifiedType type)
+void Declaration::setType(const FullySpecifiedType &type)
{ _type = type; }
FullySpecifiedType Declaration::type() const
@@ -140,7 +140,7 @@ bool Argument::hasInitializer() const
void Argument::setInitializer(bool hasInitializer)
{ _initializer = hasInitializer; }
-void Argument::setType(FullySpecifiedType type)
+void Argument::setType(const FullySpecifiedType &type)
{ _type = type; }
FullySpecifiedType Argument::type() const
@@ -230,7 +230,7 @@ FullySpecifiedType Function::type() const
FullySpecifiedType Function::returnType() const
{ return _returnType; }
-void Function::setReturnType(FullySpecifiedType returnType)
+void Function::setReturnType(const FullySpecifiedType &returnType)
{ _returnType = returnType; }
bool Function::hasReturnType() const
@@ -773,7 +773,7 @@ FullySpecifiedType ObjCMethod::type() const
FullySpecifiedType ObjCMethod::returnType() const
{ return _returnType; }
-void ObjCMethod::setReturnType(FullySpecifiedType returnType)
+void ObjCMethod::setReturnType(const FullySpecifiedType &returnType)
{ _returnType = returnType; }
bool ObjCMethod::hasReturnType() const