summaryrefslogtreecommitdiff
path: root/src/dcp.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-01-05 01:24:19 +0000
committerCarl Hetherington <cth@carlh.net>2016-01-05 01:24:19 +0000
commit5ee3348142f4cfafdbcf2c9c833843d717affc11 (patch)
tree1c97c80eeccc6b5f515a611e35dee35b21d3b09b /src/dcp.cc
parent740938890d95e853cf13d4780a5d674c3d6c7f6f (diff)
Various IMF hacks.imf
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>