]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2369] Make constructors explicit
authorMukund Sivaraman <muks@isc.org>
Tue, 6 Nov 2012 04:16:34 +0000 (09:46 +0530)
committerMukund Sivaraman <muks@isc.org>
Tue, 6 Nov 2012 04:16:34 +0000 (09:46 +0530)
src/lib/dns/master_lexer_inputsource.h

index af4c96b27f70430a7ba95d93d7ee02028a1d0304..5c7d75225fb692d5e3b20cc928a536241ae6d8a3 100644 (file)
@@ -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();