diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-24 01:35:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-24 01:35:32 +0100 |
| commit | f62f5d4514baecbbb7c6821f64d12d89c6f4c385 (patch) | |
| tree | 87f664dfe50bee9619e358f6611bfad7c2a4d4a8 /src/subtitle_asset.h | |
| parent | 9e523d8a4062ad52330dff6c2ba50e54184c9bb2 (diff) | |
Add new Data constructor to tidy things up slightly.
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; }; |
