summaryrefslogtreecommitdiff
path: root/src/reel_sound_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_sound_asset.h
parent7a8bf6efd00161b1ce7bb160bd50a0c11c28d792 (diff)
Ref does not need to be a template since it's always used for Asset.
Diffstat (limited to 'src/reel_sound_asset.h')
-rw-r--r--src/reel_sound_asset.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/reel_sound_asset.h b/src/reel_sound_asset.h
index 8f39e8a0..3158f8a0 100644
--- a/src/reel_sound_asset.h
+++ b/src/reel_sound_asset.h
@@ -42,12 +42,12 @@ public:
/** @return the SoundAsset that this object refers to */
boost::shared_ptr<SoundAsset> asset () {
- return boost::dynamic_pointer_cast<SoundAsset> (_asset_ref.object ());
+ return boost::dynamic_pointer_cast<SoundAsset> (_asset_ref.asset ());
}
/** @return the SoundAsset that this object refers to */
boost::shared_ptr<const SoundAsset> asset () const {
- return boost::dynamic_pointer_cast<const SoundAsset> (_asset_ref.object ());
+ return boost::dynamic_pointer_cast<const SoundAsset> (_asset_ref.asset ());
}
private:
@@ -56,4 +56,3 @@ private:
};
}
-