]> granicus.if.org Git - clang/commitdiff
Switch this to new API.
authorNick Lewycky <nicholas@mxc.ca>
Sat, 24 Apr 2010 22:31:36 +0000 (22:31 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 24 Apr 2010 22:31:36 +0000 (22:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102280 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/FixItRewriter.cpp

index cb2b44a027244fd4b3f9799dc5399ff5368479e2..7c9a566b6f7fe0e3d21b2a931fe3f43bac750258 100644 (file)
@@ -68,7 +68,7 @@ bool FixItRewriter::WriteFixedFiles() {
       continue;
     }
     RewriteBuffer &RewriteBuf = I->second;
-    OS << std::string(RewriteBuf.begin(), RewriteBuf.end());
+    RewriteBuf.write(OS);
     OS.flush();
   }