aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/cplusplus/Symbols.h
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.h
parentf2c4d84c6c5773c8012f5542cd0dc08f652a23aa (diff)
Pass the fully specified type as const reference.
Diffstat (limited to 'src/shared/cplusplus/Symbols.h')
-rw-r--r--src/shared/cplusplus/Symbols.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/cplusplus/Symbols.h b/src/shared/cplusplus/Symbols.h
index 88d8d521cd..85d720dfc6 100644
--- a/src/shared/cplusplus/Symbols.h
+++ b/src/shared/cplusplus/Symbols.h
@@ -120,7 +120,7 @@ public:
TemplateParameters *templateParameters() const;
void setTemplateParameters(TemplateParameters *templateParameters);
- void setType(FullySpecifiedType type);
+ void setType(const FullySpecifiedType &type);
// Symbol's interface
virtual FullySpecifiedType type() const;
@@ -145,7 +145,7 @@ public:
Argument(TranslationUnit *translationUnit, unsigned sourceLocation, Name *name);
virtual ~Argument();
- void setType(FullySpecifiedType type);
+ void setType(const FullySpecifiedType &type);
bool hasInitializer() const;
void setInitializer(bool hasInitializer);
@@ -295,7 +295,7 @@ public:
void setTemplateParameters(TemplateParameters *templateParameters);
FullySpecifiedType returnType() const;
- void setReturnType(FullySpecifiedType returnType);
+ void setReturnType(const FullySpecifiedType &returnType);
/** Convenience function that returns whether the function returns something (including void). */
bool hasReturnType() const;
@@ -680,7 +680,7 @@ public:
virtual ~ObjCMethod();
FullySpecifiedType returnType() const;
- void setReturnType(FullySpecifiedType returnType);
+ void setReturnType(const FullySpecifiedType &returnType);
/** Convenience function that returns whether the function returns something (including void). */
bool hasReturnType() const;