diff options
Diffstat (limited to 'libs/ardour/region_factory.cc')
-rw-r--r-- | libs/ardour/region_factory.cc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/libs/ardour/region_factory.cc b/libs/ardour/region_factory.cc index 96a88a6e09..1fd81f9a4b 100644 --- a/libs/ardour/region_factory.cc +++ b/libs/ardour/region_factory.cc @@ -75,7 +75,9 @@ RegionFactory::create (boost::shared_ptr<const Region> region, bool announce) } } +#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS boost_debug_shared_ptr_mark_interesting (ret.get(), "Region"); +#endif return ret; } @@ -110,7 +112,9 @@ RegionFactory::create (boost::shared_ptr<Region> region, const PropertyList& pli } } - boost_debug_shared_ptr_mark_interesting (ret.get(), "Region"); +#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS + boost_debug_shared_ptr_mark_interesting (ret.get(), "Region"); +#endif return ret; } @@ -145,7 +149,9 @@ RegionFactory::create (boost::shared_ptr<Region> region, frameoffset_t offset, c } } +#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS boost_debug_shared_ptr_mark_interesting (ret.get(), "Region"); +#endif return ret; } @@ -180,7 +186,9 @@ RegionFactory::create (boost::shared_ptr<Region> region, const SourceList& srcs, } } - boost_debug_shared_ptr_mark_interesting (ret.get(), "Region"); +#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS + boost_debug_shared_ptr_mark_interesting (ret.get(), "Region"); +#endif return ret; } @@ -218,7 +226,9 @@ RegionFactory::create (const SourceList& srcs, const PropertyList& plist, bool a } } +#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS boost_debug_shared_ptr_mark_interesting (ret.get(), "Region"); +#endif return ret; } @@ -256,7 +266,9 @@ RegionFactory::create (SourceList& srcs, const XMLNode& node) } } +#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS boost_debug_shared_ptr_mark_interesting (ret.get(), "Region"); +#endif return ret; } |