Add 'explicit' keyword

This commit is contained in:
Serge Lamikhov-Center 2022-09-17 09:26:05 +03:00
parent f21f8ad533
commit cccc78a37b
5 changed files with 9 additions and 5 deletions

View File

@ -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 )
{
}

View File

@ -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 )
{
}

View File

@ -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();

View File

@ -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 )
{
}

View File

@ -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;