Skip to content

Commit a88f87f

Browse files
committed
Make a couple constructors explicit
1 parent f637e41 commit a88f87f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/symbols/dwarf/dwarf_resolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ namespace libdwarf {
107107

108108
public:
109109
CPPTRACE_FORCE_NO_INLINE_FOR_PROFILING
110-
dwarf_resolver(cstring_view object_path_, optional<skeleton_info> split_ = nullopt)
110+
explicit dwarf_resolver(cstring_view object_path_, optional<skeleton_info> split_ = nullopt)
111111
: object_path(object_path_),
112112
skeleton(std::move(split_))
113113
{

src/symbols/dwarf/resolver.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace libdwarf {
2626

2727
class null_resolver : public symbol_resolver {
2828
public:
29-
null_resolver() = default;
29+
explicit null_resolver() = default;
3030
null_resolver(cstring_view) {}
3131

3232
CPPTRACE_FORCE_NO_INLINE_FOR_PROFILING

0 commit comments

Comments
 (0)