mirror of
https://github.com/QuasarApp/ELFIO.git
synced 2025-05-01 06:14:32 +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
|
void
|
||||||
add_entry( Elf_Xword& tag,
|
add_entry( Elf_Xword tag,
|
||||||
Elf_Xword& value )
|
Elf_Xword value )
|
||||||
{
|
{
|
||||||
if ( elf_file.get_class() == ELFCLASS32 ) {
|
if ( elf_file.get_class() == ELFCLASS32 ) {
|
||||||
generic_add_entry< Elf32_Dyn >( tag, value );
|
generic_add_entry< Elf32_Dyn >( tag, value );
|
||||||
@ -104,8 +104,8 @@ class dynamic_section_accessor_template
|
|||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
void
|
void
|
||||||
add_entry( Elf_Xword& tag,
|
add_entry( Elf_Xword tag,
|
||||||
std::string& str )
|
const std::string& str )
|
||||||
{
|
{
|
||||||
string_section_accessor strsec =
|
string_section_accessor strsec =
|
||||||
elf_file.sections[ get_string_table_index() ];
|
elf_file.sections[ get_string_table_index() ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user