diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-12-04 01:12:15 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-12-04 01:12:15 +0000 |
commit | 640ccf071076e684713cc3c3276bb51982bff607 (patch) | |
tree | 5944378a29eade657092b63164c37d1e3b118ab4 /lib/Checker/CFRefCount.cpp | |
parent | ae3038c5e8bfce47337e83aeb253256633fbb701 (diff) |
Minor refactoring; have BugReport::getRanges return a pair of iterator, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/CFRefCount.cpp')
-rw-r--r-- | lib/Checker/CFRefCount.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Checker/CFRefCount.cpp b/lib/Checker/CFRefCount.cpp index 3e5245741f..d9900c5dfb 100644 --- a/lib/Checker/CFRefCount.cpp +++ b/lib/Checker/CFRefCount.cpp @@ -1941,15 +1941,15 @@ namespace { virtual ~CFRefReport() {} - CFRefBug& getBugType() { + CFRefBug& getBugType() const { return (CFRefBug&) RangedBugReport::getBugType(); } - virtual void getRanges(const SourceRange*& beg, const SourceRange*& end) { + virtual std::pair<ranges_iterator, ranges_iterator> getRanges() const { if (!getBugType().isLeak()) - RangedBugReport::getRanges(beg, end); + return RangedBugReport::getRanges(); else - beg = end = 0; + return std::make_pair(ranges_iterator(), ranges_iterator()); } SymbolRef getSymbol() const { return Sym; } |