diff options
Diffstat (limited to 'src/dcp.cc')
| -rw-r--r-- | src/dcp.cc | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -63,11 +63,7 @@ DCP::write_xml ( list<shared_ptr<DCPCPL> > DCP::cpls () const { - list<shared_ptr<DCPCPL> > d; - BOOST_FOREACH (shared_ptr<CPL> i, _cpls) { - d.push_back (dynamic_pointer_cast<DCPCPL> (i)); - } - return d; + return cpls_of_type<DCPCPL> (); } shared_ptr<CPL> |
