Skip to content
Snippets Groups Projects
Commit 35000842 authored by Vinicius Rangel's avatar Vinicius Rangel Committed by Serge Lamikhov-Center
Browse files

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
parent cb3bd43c
No related branches found
No related tags found
No related merge requests found
......@@ -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() ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment