diff options
Diffstat (limited to 'dwarflint/sections.hh')
| -rw-r--r-- | dwarflint/sections.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dwarflint/sections.hh b/dwarflint/sections.hh index bb8c8720..48151ae8 100644 --- a/dwarflint/sections.hh +++ b/dwarflint/sections.hh @@ -33,7 +33,7 @@ class load_sections : public check<load_sections> { public: - static checkdescriptor const &descriptor (); + static checkdescriptor const *descriptor (); elf_file file; load_sections (checkstack &stack, dwarflint &lint); @@ -46,7 +46,7 @@ class section_base sec &get_sec_or_throw (section_id secid); public: - static checkdescriptor const &descriptor (); + static checkdescriptor const *descriptor (); sec § elf_file &file; @@ -65,11 +65,11 @@ class section , public check<section<sec_id> > { public: - static checkdescriptor const &descriptor () { + static checkdescriptor const *descriptor () { static checkdescriptor cd (checkdescriptor::create (section_name[sec_id]) .inherit<section_base> ()); - return cd; + return &cd; } explicit section (checkstack &stack, dwarflint &lint) |
