summaryrefslogtreecommitdiff
path: root/src/dcp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dcp.cc')
-rw-r--r--src/dcp.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index 7393b18f..cc93fa8e 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -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>