summaryrefslogtreecommitdiff
path: root/src/asset_reader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/asset_reader.h')
-rw-r--r--src/asset_reader.h5
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 {