Browse Source

[2369] Make constructors explicit

Mukund Sivaraman 12 years ago
parent
commit
265fb98ba1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/dns/master_lexer_inputsource.h

+ 2 - 2
src/lib/dns/master_lexer_inputsource.h

@@ -65,13 +65,13 @@ public:
 
     /// \brief Constructor which takes an input stream. The stream is
     /// read-from, but it is not closed.
-    InputSource(std::istream& input_stream);
+    explicit InputSource(std::istream& input_stream);
 
     /// \brief Constructor which takes a filename to read from. The
     /// associated file stream is managed internally.
     ///
     /// \throws OpenError when opening the input file fails.
-    InputSource(const char* filename);
+    explicit InputSource(const char* filename);
 
     /// \brief Destructor
     ~InputSource();