diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-05-19 12:15:30 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-05-19 12:17:51 +0200 |
commit | 339cb434540d4fe3e67336dc319a3460950a2239 (patch) | |
tree | 95de279377065949280ef534ee5828628afa2a11 /src/shared/cplusplus/Symbols.cpp | |
parent | 55c69ffea48a1f81c1310efc4e6b58b4f72b078a (diff) | |
download | qt-creator-339cb434540d4fe3e67336dc319a3460950a2239.tar.gz |
Removed hidden function declarations from the overloaded function set.
Diffstat (limited to 'src/shared/cplusplus/Symbols.cpp')
-rw-r--r-- | src/shared/cplusplus/Symbols.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Symbols.cpp b/src/shared/cplusplus/Symbols.cpp index 10b82664c3..6bbf31e5b5 100644 --- a/src/shared/cplusplus/Symbols.cpp +++ b/src/shared/cplusplus/Symbols.cpp @@ -187,6 +187,11 @@ bool Function::isEqualTo(const Type *other) const const Function *o = other->asFunctionType(); if (! o) return false; + else if (isConst() != o->isConst()) + return false; + else if (isVolatile() != o->isVolatile()) + return false; + Name *l = identity(); Name *r = o->identity(); if (l == r || (l && l->isEqualTo(r))) { |