mirror of
https://github.com/serge1/ELFIO.git
synced 2025-04-16 14:42:39 +00:00
Remove redundant member initialization
This commit is contained in:
parent
8409f20a7f
commit
ef56f39379
@ -41,8 +41,11 @@ THE SOFTWARE.
|
|||||||
#include <elfio/elfio_segment.hpp>
|
#include <elfio/elfio_segment.hpp>
|
||||||
#include <elfio/elfio_strings.hpp>
|
#include <elfio/elfio_strings.hpp>
|
||||||
|
|
||||||
#define ELFIO_HEADER_ACCESS_GET( TYPE, FNAME ) \
|
#define ELFIO_HEADER_ACCESS_GET( TYPE, FNAME ) \
|
||||||
TYPE get_##FNAME() const { return header ? ( header->get_##FNAME() ) : 0; }
|
TYPE get_##FNAME() const \
|
||||||
|
{ \
|
||||||
|
return header ? ( header->get_##FNAME() ) : 0; \
|
||||||
|
}
|
||||||
|
|
||||||
#define ELFIO_HEADER_ACCESS_GET_SET( TYPE, FNAME ) \
|
#define ELFIO_HEADER_ACCESS_GET_SET( TYPE, FNAME ) \
|
||||||
TYPE get_##FNAME() const \
|
TYPE get_##FNAME() const \
|
||||||
@ -63,13 +66,12 @@ class elfio
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
elfio() noexcept
|
elfio() noexcept : sections( this ), segments( this )
|
||||||
: sections( this ), segments( this ), compression( nullptr )
|
|
||||||
{
|
{
|
||||||
create( ELFCLASS32, ELFDATA2LSB );
|
create( ELFCLASS32, ELFDATA2LSB );
|
||||||
}
|
}
|
||||||
|
|
||||||
elfio( compression_interface* compression ) noexcept
|
explicit elfio( compression_interface* compression ) noexcept
|
||||||
: sections( this ), segments( this ),
|
: sections( this ), segments( this ),
|
||||||
compression( std::shared_ptr<compression_interface>( compression ) )
|
compression( std::shared_ptr<compression_interface>( compression ) )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user