Skip to content

Commit 049a43a

Browse files
committed
Use explicit for single param constructors
1 parent 3a12fb3 commit 049a43a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/common-cleanup.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ namespace testing::cleanup {
2626
class file_t
2727
{
2828
public:
29-
file_t(std::string const &filename, bool remove_on_construct = true)
29+
explicit file_t(std::string const &filename,
30+
bool remove_on_construct = true)
3031
: m_filename(filename)
3132
{
3233
if (remove_on_construct) {

tests/common-pg.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace testing::pg {
3737
class conn_t : public pg_conn_t
3838
{
3939
public:
40-
conn_t(connection_params_t const &connection_params)
40+
explicit conn_t(connection_params_t const &connection_params)
4141
: pg_conn_t(connection_params, "test")
4242
{
4343
}

0 commit comments

Comments
 (0)