diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-24 14:14:02 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-24 14:14:02 +0100 |
| commit | 094117316524f12fc82adbdf721778eed04e66f6 (patch) | |
| tree | aaa2abd88a2aba64d53022554265f000c93be966 /src/subtitle_asset.h | |
| parent | 2ae92dcc97765deb2845dd07a338858aeb375cb3 (diff) | |
Give Data a loading constructor.
Diffstat (limited to 'src/subtitle_asset.h')
| -rw-r--r-- | src/subtitle_asset.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h index cc27f958..31afecb3 100644 --- a/src/subtitle_asset.h +++ b/src/subtitle_asset.h @@ -98,6 +98,10 @@ protected: : Data (data_, size_) {} + FileData (boost::filesystem::path file_) + : Data (file_) + {} + /** .ttf file that this data was last written to */ mutable boost::optional<boost::filesystem::path> file; }; |
