mirror of
https://github.com/serge1/ELFIO.git
synced 2025-03-23 13:20:50 +00:00
Pass all used vars by reference
This commit is contained in:
parent
e730dfdb6f
commit
46acd5c16d
@ -139,11 +139,11 @@ class symbol_section_accessor_template
|
|||||||
Elf64_Addr v = 0;
|
Elf64_Addr v = 0;
|
||||||
|
|
||||||
if ( elf_file.get_class() == ELFCLASS32 ) {
|
if ( elf_file.get_class() == ELFCLASS32 ) {
|
||||||
match = generic_search_symbols<Elf32_Sym>([&convertor, &value](const Elf32_Sym* sym) {
|
match = generic_search_symbols<Elf32_Sym>([&](const Elf32_Sym* sym) {
|
||||||
return convertor(sym->st_value) == value;
|
return convertor(sym->st_value) == value;
|
||||||
}, idx);
|
}, idx);
|
||||||
} else {
|
} else {
|
||||||
match = generic_search_symbols<Elf64_Sym>([&convertor, &value](const Elf64_Sym* sym) {
|
match = generic_search_symbols<Elf64_Sym>([&](const Elf64_Sym* sym) {
|
||||||
return convertor(sym->st_value) == value;
|
return convertor(sym->st_value) == value;
|
||||||
}, idx);
|
}, idx);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user