[llvm-commits] [llvm] r76073 - /llvm/trunk/include/llvm/Support/raw_ostream.h

Dan Gohman gohman at apple.com
Thu Jul 16 08:33:05 PDT 2009


Author: djg
Date: Thu Jul 16 10:33:04 2009
New Revision: 76073

URL: http://llvm.org/viewvc/llvm-project?rev=76073&view=rev
Log:
Add explicit keywords.

Modified:
    llvm/trunk/include/llvm/Support/raw_ostream.h

Modified: llvm/trunk/include/llvm/Support/raw_ostream.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/raw_ostream.h?rev=76073&r1=76072&r2=76073&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/raw_ostream.h (original)
+++ llvm/trunk/include/llvm/Support/raw_ostream.h Thu Jul 16 10:33:04 2009
@@ -365,7 +365,7 @@
   /// counting the bytes currently in the buffer.
   virtual uint64_t current_pos() { return OS.size(); }
 public:
-  raw_string_ostream(std::string &O) : OS(O) {}
+  explicit raw_string_ostream(std::string &O) : OS(O) {}
   ~raw_string_ostream();
 
   /// tell - Return the current offset with the stream.
@@ -392,7 +392,7 @@
   /// counting the bytes currently in the buffer.
   virtual uint64_t current_pos();
 public:
-  raw_svector_ostream(SmallVectorImpl<char> &O) : OS(O) {}
+  explicit raw_svector_ostream(SmallVectorImpl<char> &O) : OS(O) {}
   ~raw_svector_ostream();
 
   /// tell - Return the current offset with the stream.





More information about the llvm-commits mailing list