Parcourir la source

[2369] Make constructors explicit

Mukund Sivaraman il y a 12 ans
Parent
commit
265fb98ba1
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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();