diff --git a/elfio/elfio_array.hpp b/elfio/elfio_array.hpp index 9f5aa3e3fc166f64b61bfb2706dc89fc46893c64..190c07527fba2a0d9f182070967103df9188c0bb 100644 --- a/elfio/elfio_array.hpp +++ b/elfio/elfio_array.hpp @@ -32,7 +32,8 @@ template <class S, typename T> class array_section_accessor_template { public: //------------------------------------------------------------------------------ - array_section_accessor_template( const elfio& elf_file, S* section ) + explicit array_section_accessor_template( const elfio& elf_file, + S* section ) : elf_file( elf_file ), array_section( section ) { } diff --git a/elfio/elfio_dynamic.hpp b/elfio/elfio_dynamic.hpp index 7cb2f81308b6a1b7d94a66b292586c8e39746aab..035e67d2892b91e94f88d7628ed4c4f36948d28d 100644 --- a/elfio/elfio_dynamic.hpp +++ b/elfio/elfio_dynamic.hpp @@ -32,7 +32,8 @@ template <class S> class dynamic_section_accessor_template { public: //------------------------------------------------------------------------------ - dynamic_section_accessor_template( const elfio& elf_file, S* section ) + explicit dynamic_section_accessor_template( const elfio& elf_file, + S* section ) : elf_file( elf_file ), dynamic_section( section ), entries_num( 0 ) { } diff --git a/elfio/elfio_note.hpp b/elfio/elfio_note.hpp index a68ca680a03fa1cbc49abf300fc30bb2a7d19287..63ef102919680fc0b732749d76c93ec3982dc533 100644 --- a/elfio/elfio_note.hpp +++ b/elfio/elfio_note.hpp @@ -43,7 +43,7 @@ class note_section_accessor_template { public: //------------------------------------------------------------------------------ - note_section_accessor_template( const elfio& elf_file, S* section ) + explicit note_section_accessor_template( const elfio& elf_file, S* section ) : elf_file( elf_file ), notes( section ) { process_section(); diff --git a/elfio/elfio_relocation.hpp b/elfio/elfio_relocation.hpp index 7c514d516178762ea79108793fd9c690052c90f5..a92747f60bc3cc3075cff9684a823da53e4cbed4 100644 --- a/elfio/elfio_relocation.hpp +++ b/elfio/elfio_relocation.hpp @@ -64,7 +64,8 @@ template <class S> class relocation_section_accessor_template { public: //------------------------------------------------------------------------------ - relocation_section_accessor_template( const elfio& elf_file, S* section ) + explicit relocation_section_accessor_template( const elfio& elf_file, + S* section ) : elf_file( elf_file ), relocation_section( section ) { } diff --git a/elfio/elfio_symbols.hpp b/elfio/elfio_symbols.hpp index 3b53495089701c277a7cc183ea3c97e16a900a64..23cd4f7d6c79b76b3d464a5fce8c09f1a2a7ac02 100644 --- a/elfio/elfio_symbols.hpp +++ b/elfio/elfio_symbols.hpp @@ -30,7 +30,8 @@ template <class S> class symbol_section_accessor_template { public: //------------------------------------------------------------------------------ - symbol_section_accessor_template( const elfio& elf_file, S* symbol_section ) + explicit symbol_section_accessor_template( const elfio& elf_file, + S* symbol_section ) : elf_file( elf_file ), symbol_section( symbol_section ) { hash_section = nullptr;