diff options
| author | Craig Topper <craig.topper@gmail.com> | 2013-07-04 03:08:24 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2013-07-04 03:08:24 +0000 |
| commit | 09d19efaa147762f84aed55efa7930bb3616a4e5 (patch) | |
| tree | aa7bb1fb61edc7c5f685118ca9e842e37da1f3ad /lib/StaticAnalyzer/Core/BugReporter.cpp | |
| parent | 8b625a3f7764959d0a2ac3cd860ce1e168e0fc9b (diff) | |
| download | clang-09d19efaa147762f84aed55efa7930bb3616a4e5.tar.gz clang-09d19efaa147762f84aed55efa7930bb3616a4e5.tar.bz2 clang-09d19efaa147762f84aed55efa7930bb3616a4e5.tar.xz | |
Use SmallVectorImpl instead of SmallVector for iterators and references to avoid specifying the vector size unnecessarily.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/BugReporter.cpp')
| -rw-r--r-- | lib/StaticAnalyzer/Core/BugReporter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index 6b110ad28b..912d5c501d 100644 --- a/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -2743,7 +2743,7 @@ void BugReporter::FlushReports() { SmallVector<const BugType*, 16> bugTypes; for (BugTypesTy::iterator I=BugTypes.begin(), E=BugTypes.end(); I!=E; ++I) bugTypes.push_back(*I); - for (SmallVector<const BugType*, 16>::iterator + for (SmallVectorImpl<const BugType *>::iterator I = bugTypes.begin(), E = bugTypes.end(); I != E; ++I) const_cast<BugType*>(*I)->FlushReports(*this); |
