Add explicit keywords.
authorDan Gohman <gohman@apple.com>
Thu, 16 Jul 2009 15:33:04 +0000 (15:33 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 16 Jul 2009 15:33:04 +0000 (15:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76073 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/raw_ostream.h

index 55cc957b20ca95242a236a3737f61632c6f33519..aeeb7e3abc4e76e8c50522c4c669e28a82464c10 100644 (file)
@@ -365,7 +365,7 @@ class raw_string_ostream : public raw_ostream {
   /// 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 @@ class raw_svector_ostream : public raw_ostream {
   /// 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.