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:
Dodji Seketeli 2014-09-19 11:36:37 +02:00
parent 368d192deb
commit a18fd928df

View File

@ -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);
}