mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-19 16:30:04 +00:00
Light cleanup in abg-corpus.cc
* src/abg-corpus.cc (symtab_build_visitor_type::regex_fns_suppress): use sptr_utils::build_sptr, rather than building the shared_ptr of regex_t by hand. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
368d192deb
commit
a18fd928df
@ -311,7 +311,7 @@ public:
|
||||
i != regex_patterns_fns_to_suppress.end();
|
||||
++i)
|
||||
{
|
||||
regex_t_sptr r(new regex_t, sptr_utils::regex_t_deleter());
|
||||
regex_t_sptr r = sptr_utils::build_sptr(new regex_t);
|
||||
if (regcomp(r.get(), i->c_str(), REG_EXTENDED) == 0)
|
||||
r_fns_suppress.push_back(r);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user