summaryrefslogtreecommitdiff
path: root/src/reel_sound_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-04-13 23:50:28 +0200
committerCarl Hetherington <cth@carlh.net>2021-04-13 23:50:28 +0200
commit4bd57fbbac67ac04ec47a9765b9f278aa1691851 (patch)
tree55a607e6ac16fa52f69522312f2464443fac5aeb /src/reel_sound_asset.h
parent488e3d1bd5e6b17d49f6db4df14c64f4b64db89b (diff)
Tidying a few things up.
Diffstat (limited to 'src/reel_sound_asset.h')
-rw-r--r--src/reel_sound_asset.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/reel_sound_asset.h b/src/reel_sound_asset.h
index 0b4d0f9d..5eee23be 100644
--- a/src/reel_sound_asset.h
+++ b/src/reel_sound_asset.h
@@ -55,17 +55,17 @@ public:
ReelSoundAsset (std::shared_ptr<dcp::SoundAsset> content, int64_t entry_point);
explicit ReelSoundAsset (std::shared_ptr<const cxml::Node>);
- bool equals (std::shared_ptr<const ReelSoundAsset>, EqualityOptions, NoteHandler) const;
+ /** @return the SoundAsset that this object refers to */
+ std::shared_ptr<const SoundAsset> asset () const {
+ return asset_of_type<const SoundAsset>();
+ }
/** @return the SoundAsset that this object refers to */
std::shared_ptr<SoundAsset> asset () {
return asset_of_type<SoundAsset>();
}
- /** @return the SoundAsset that this object refers to */
- std::shared_ptr<const SoundAsset> asset () const {
- return asset_of_type<const SoundAsset>();
- }
+ bool equals (std::shared_ptr<const ReelSoundAsset>, EqualityOptions, NoteHandler) const;
private:
boost::optional<std::string> key_type () const;