Replace hack with use of generic_string from boost::filesystem.
[libdcp.git] / src / reel_picture_asset.h
index 39ef3431bfa846ba506ceefc709f7f24fc4ea730..1611221fc32a777be7f0a174e91aa6a46aedeff0 100644 (file)
@@ -45,12 +45,12 @@ public:
 
        /** @return the PictureAsset that this object refers to */
        boost::shared_ptr<const PictureAsset> asset () const {
-               return boost::dynamic_pointer_cast<const PictureAsset> (_asset_ref.asset ());
+               return asset_of_type<const PictureAsset> ();
        }
 
        /** @return the PictureAsset that this object refers to */
        boost::shared_ptr<PictureAsset> asset () {
-               return boost::dynamic_pointer_cast<PictureAsset> (_asset_ref.asset ());
+               return asset_of_type<PictureAsset> ();
        }
 
        /** @return picture frame rate */