From: Chris Lattner Date: Thu, 8 Nov 2007 05:42:25 +0000 (+0000) Subject: abstract out buffer type a bit better X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cdd808e2af9f92ef406065c4855ac72d121dbcda;p=clang abstract out buffer type a bit better git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43883 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Rewrite/Rewriter.h b/include/clang/Rewrite/Rewriter.h index 8e8988308c..2079938752 100644 --- a/include/clang/Rewrite/Rewriter.h +++ b/include/clang/Rewrite/Rewriter.h @@ -55,11 +55,12 @@ class RewriteBuffer { /// Buffer - This is the actual buffer itself. Note that using a vector or /// string is a horribly inefficient way to do this, we should use a rope /// instead. - std::vector Buffer; + typedef std::vector BufferTy; + BufferTy Buffer; public: - typedef std::vector::const_iterator iterator; + typedef BufferTy::const_iterator iterator; iterator begin() const { return Buffer.begin(); } iterator end() const { return Buffer.end(); }