diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-02 18:23:36 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-08-02 18:23:36 +0200 |
| commit | 7d9e108ba3629b2e9120bc1da3354935c41aca37 (patch) | |
| tree | c8ffdb2bca75d62bfe9fa2262e9fc4cd19c45027 /src/asset_reader.h | |
| parent | 6f98afd8021f9475bbd342bdcb39162b3167fa9e (diff) | |
WIP: more hacks.shared-ptr
Diffstat (limited to 'src/asset_reader.h')
| -rw-r--r-- | src/asset_reader.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/asset_reader.h b/src/asset_reader.h index 091ac915..89f6c699 100644 --- a/src/asset_reader.h +++ b/src/asset_reader.h @@ -70,10 +70,9 @@ public: delete _reader; } - std::shared_ptr<const F> get_frame (int n) const + F get_frame(int n) const { - /* Can't use make_shared here as the constructor is private */ - return std::shared_ptr<const F> (new F(_reader, n, _crypto_context, _check_hmac)); + return F(_reader, n, _crypto_context, _check_hmac); } R* reader () const { |
