mirror of
https://github.com/serge1/ELFIO.git
synced 2025-01-31 00:32:37 +00:00
dynamic_section_accessor#add_entry params updated
Changed useless by-reference params to by-value which forbids number literals (i.e. DT_*) Added missing const keyword to std::string& parameter
This commit is contained in:
parent
cb3bd43ca5
commit
350008420f
@ -91,8 +91,8 @@ class dynamic_section_accessor_template
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
void
|
||||
add_entry( Elf_Xword& tag,
|
||||
Elf_Xword& value )
|
||||
add_entry( Elf_Xword tag,
|
||||
Elf_Xword value )
|
||||
{
|
||||
if ( elf_file.get_class() == ELFCLASS32 ) {
|
||||
generic_add_entry< Elf32_Dyn >( tag, value );
|
||||
@ -104,8 +104,8 @@ class dynamic_section_accessor_template
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
void
|
||||
add_entry( Elf_Xword& tag,
|
||||
std::string& str )
|
||||
add_entry( Elf_Xword tag,
|
||||
const std::string& str )
|
||||
{
|
||||
string_section_accessor strsec =
|
||||
elf_file.sections[ get_string_table_index() ];
|
||||
|
Loading…
x
Reference in New Issue
Block a user