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 /include/clang/Edit | |
parent | 8b625a3f7764959d0a2ac3cd860ce1e168e0fc9b (diff) |
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 'include/clang/Edit')
-rw-r--r-- | include/clang/Edit/Commit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Edit/Commit.h b/include/clang/Edit/Commit.h index 48e3d593aa..2a296421d3 100644 --- a/include/clang/Edit/Commit.h +++ b/include/clang/Edit/Commit.h @@ -103,7 +103,7 @@ public: CharSourceRange::getTokenRange(TokenInnerRange)); } - typedef SmallVector<Edit, 8>::const_iterator edit_iterator; + typedef SmallVectorImpl<Edit>::const_iterator edit_iterator; edit_iterator edit_begin() const { return CachedEdits.begin(); } edit_iterator edit_end() const { return CachedEdits.end(); } |