serge1 / ELFIO

ELFIO - ELF (Executable and Linkable Format) reader and producer implemented as a header only C++ library
http://serge1.github.io/ELFIO
MIT License
729 stars 158 forks source link

Fixed some warnings from Cppcheck. #34

Closed orbitcowboy closed 5 years ago

orbitcowboy commented 5 years ago

This fixes two warnings brought up by Cppcheck:

[ELFIO/ELFIOTest/ELFIOTest.cpp:77]: (performance) Function parameter 'name' should be passed by const reference.
[ELFIO/examples/RelocationTable/RelocationTable.cpp:16] -> [ELFIO/examples/RelocationTable/RelocationTable.cpp:38]: (style) Local variable 'i' shadows outer variable
serge1 commented 5 years ago

The changes have been accepted. Thank you very much!