From a187ecf3def3784d2041efba513ce84d9c1bd32d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 8 Apr 2024 22:44:22 +0200 Subject: [PATCH] clang --- test/redirect.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/redirect.h b/test/redirect.h index f05fe182942..0518a3f81a5 100644 --- a/test/redirect.h +++ b/test/redirect.h @@ -117,7 +117,7 @@ class SuppressOutput { class RedirectInput { public: - RedirectInput(const std::string &input) : _in(input) { + explicit RedirectInput(const std::string &input) : _in(input) { _oldCin = std::cin.rdbuf(); // back up cin's streambuf std::cin.rdbuf(_in.rdbuf()); // assign streambuf to cin }