]> granicus.if.org Git - clang/commitdiff
abstract out buffer type a bit better
authorChris Lattner <sabre@nondot.org>
Thu, 8 Nov 2007 05:42:25 +0000 (05:42 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 8 Nov 2007 05:42:25 +0000 (05:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43883 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Rewrite/Rewriter.h

index 8e8988308c4712a98cf756db832a60fedd1a9cfe..207993875291bbf4d05d56dac43f9c91f828a394 100644 (file)
@@ -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<char> Buffer;
+  typedef std::vector<char> BufferTy;
+  BufferTy Buffer;
 public:
 
   
-  typedef std::vector<char>::const_iterator iterator;
+  typedef BufferTy::const_iterator iterator;
   iterator begin() const { return Buffer.begin(); }
   iterator end() const { return Buffer.end(); }