mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Mark some single-argument constructors explicit
This commit is contained in:
@@ -36,7 +36,7 @@ private:
|
||||
class CerrRedirect
|
||||
{
|
||||
public:
|
||||
CerrRedirect (std::stringstream& sStream)
|
||||
explicit CerrRedirect (std::stringstream& sStream)
|
||||
: old_ (std::cerr.rdbuf (sStream.rdbuf()))
|
||||
{ }
|
||||
|
||||
@@ -53,7 +53,7 @@ private:
|
||||
class ThreadNameGuard
|
||||
{
|
||||
public:
|
||||
ThreadNameGuard (std::string const& newName)
|
||||
explicit ThreadNameGuard (std::string const& newName)
|
||||
: old_ (beast::getCurrentThreadName ())
|
||||
{
|
||||
beast::setCurrentThreadName (newName);
|
||||
|
||||
Reference in New Issue
Block a user