summaryrefslogtreecommitdiff
path: root/src/subtitle_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-24 01:35:32 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-24 01:35:32 +0100
commitf62f5d4514baecbbb7c6821f64d12d89c6f4c385 (patch)
tree87f664dfe50bee9619e358f6611bfad7c2a4d4a8 /src/subtitle_asset.h
parent9e523d8a4062ad52330dff6c2ba50e54184c9bb2 (diff)
Add new Data constructor to tidy things up slightly.
Diffstat (limited to 'src/subtitle_asset.h')
-rw-r--r--src/subtitle_asset.h4
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;
};