From 7a7da75916841d5307afd95347a3a4f5aa0ca366 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 8 Nov 2007 05:42:25 +0000 Subject: [PATCH] abstract out buffer type a bit better llvm-svn: 43883 --- clang/include/clang/Rewrite/Rewriter.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/Rewrite/Rewriter.h b/clang/include/clang/Rewrite/Rewriter.h index 8e8988308c47..207993875291 100644 --- a/clang/include/clang/Rewrite/Rewriter.h +++ b/clang/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(); }