mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Mark some single-argument constructors explicit
This commit is contained in:
@@ -400,7 +400,7 @@ class Stoppable_test
|
||||
C c_;
|
||||
Stoppable_test& test_;
|
||||
public:
|
||||
Root(Stoppable_test& test)
|
||||
explicit Root(Stoppable_test& test)
|
||||
: RootStoppable("R")
|
||||
, a_(&A::run, std::make_unique<A>(*this, test))
|
||||
, b_(*this, test)
|
||||
|
||||
@@ -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