diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-05 17:06:16 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-08-05 17:53:14 +0200 |
commit | 4ff3ee2ff04279b3c2ca317a7bac1f08c4a11eb5 (patch) | |
tree | 413578fa80c4c3c2c1791e7ffc6d09a6b48aa284 /src/shared/cplusplus/Scope.cpp | |
parent | 9aa991d6368f011e215a482c60add86f7f6277a2 (diff) | |
download | qt-creator-4ff3ee2ff04279b3c2ca317a7bac1f08c4a11eb5.tar.gz |
Use Prototype instead of Function.
Diffstat (limited to 'src/shared/cplusplus/Scope.cpp')
-rw-r--r-- | src/shared/cplusplus/Scope.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/shared/cplusplus/Scope.cpp b/src/shared/cplusplus/Scope.cpp index 2b6b141856..a38dce4840 100644 --- a/src/shared/cplusplus/Scope.cpp +++ b/src/shared/cplusplus/Scope.cpp @@ -118,7 +118,7 @@ Scope *Scope::enclosingEnumScope() const return scope; } -Scope *Scope::enclosingFunctionScope() const +Scope *Scope::enclosingPrototypeScope() const { Scope *scope = enclosingScope(); for (; scope; scope = scope->enclosingScope()) { @@ -166,11 +166,6 @@ bool Scope::isBlockScope() const return false; } -bool Scope::isPrototypeScope() const -{ - return isFunctionScope(); -} - bool Scope::isObjCClassScope() const { if (_owner) @@ -185,7 +180,7 @@ bool Scope::isObjCProtocolScope() const return false; } -bool Scope::isFunctionScope() const +bool Scope::isPrototypeScope() const { if (_owner) return _owner->isFunction(); |