summaryrefslogtreecommitdiff
path: root/src/reel_picture_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-12-16 20:20:47 +0000
committerCarl Hetherington <cth@carlh.net>2015-12-16 20:20:47 +0000
commitff896d5f5ec20e1371b423bb746c32fa55cc126a (patch)
treebcd6f76709753812c8a988ad43c1f7b8727c6f28 /src/reel_picture_asset.h
parent7a8bf6efd00161b1ce7bb160bd50a0c11c28d792 (diff)
Ref does not need to be a template since it's always used for Asset.
Diffstat (limited to 'src/reel_picture_asset.h')
-rw-r--r--src/reel_picture_asset.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/reel_picture_asset.h b/src/reel_picture_asset.h
index 15b01b74..39ef3431 100644
--- a/src/reel_picture_asset.h
+++ b/src/reel_picture_asset.h
@@ -44,8 +44,13 @@ public:
virtual bool equals (boost::shared_ptr<const ReelAsset>, EqualityOptions, NoteHandler) const;
/** @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 the PictureAsset that this object refers to */
boost::shared_ptr<PictureAsset> asset () {
- return boost::dynamic_pointer_cast<PictureAsset> (_asset_ref.object ());
+ return boost::dynamic_pointer_cast<PictureAsset> (_asset_ref.asset ());
}
/** @return picture frame rate */