]> sourceware.org Git - libabigail.git/commitdiff
Light cleanup in abg-corpus.cc
authorDodji Seketeli <dodji@redhat.com>
Fri, 19 Sep 2014 09:36:37 +0000 (11:36 +0200)
committerDodji Seketeli <dodji@redhat.com>
Fri, 19 Sep 2014 10:31:01 +0000 (12:31 +0200)
* 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>
src/abg-corpus.cc

index 9701217e540b6775db3e58fd44fb826cdf63293d..07026965c43865e56d89e40126e7e0f02196c60a 100644 (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);
          }
This page took 0.034555 seconds and 5 git commands to generate.