summaryrefslogtreecommitdiff
path: root/src/subtitle_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-24 14:14:02 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-24 14:14:02 +0100
commit094117316524f12fc82adbdf721778eed04e66f6 (patch)
treeaaa2abd88a2aba64d53022554265f000c93be966 /src/subtitle_asset.h
parent2ae92dcc97765deb2845dd07a338858aeb375cb3 (diff)
Give Data a loading constructor.
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;
};