From 7c7ce13ac09d1a3a3807d0f4fea97688554d28d3 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Tue, 1 Dec 2009 12:46:15 +0100 Subject: Use const names. --- src/shared/cplusplus/Symbol.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/shared/cplusplus/Symbol.h') diff --git a/src/shared/cplusplus/Symbol.h b/src/shared/cplusplus/Symbol.h index 7230a8e0c8..e8615dc75b 100644 --- a/src/shared/cplusplus/Symbol.h +++ b/src/shared/cplusplus/Symbol.h @@ -81,7 +81,7 @@ public: public: /// Constructs a Symbol with the given source location, name and translation unit. - Symbol(TranslationUnit *translationUnit, unsigned sourceLocation, Name *name); + Symbol(TranslationUnit *translationUnit, unsigned sourceLocation, const Name *name); /// Destroy this Symbol. virtual ~Symbol(); @@ -121,10 +121,10 @@ public: void getEndPosition(unsigned *line, unsigned *column = 0, const StringLiteral **fileId = 0) const; /// Returns this Symbol's name. - Name *name() const; + const Name *name() const; /// Sets this Symbol's name. - void setName(Name *name); // ### dangerous + void setName(const Name *name); // ### dangerous /// Returns this Symbol's (optional) identifier const Identifier *identifier() const; @@ -282,7 +282,7 @@ public: /// Returns this Symbol's index. unsigned index() const; - Name *identity() const; + const Name *identity() const; bool isGenerated() const; @@ -320,7 +320,7 @@ private: unsigned _sourceOffset; unsigned _startOffset; unsigned _endOffset; - Name *_name; + const Name *_name; unsigned _hashCode; int _storage; int _visibility; -- cgit v1.2.1