diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-10 21:32:30 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-10 21:32:30 +0000 |
| commit | 4a557a8b6631f132e851b1bb362cde4270ca6057 (patch) | |
| tree | 90fb18368ab64a3739d1b1e849838f57045b9fbe /src/subtitle_asset.cc | |
| parent | 53fb1df6ca3848f9835b745b8ce13b0ad2196137 (diff) | |
Derive exceptions from boost::exception and use boost::throw_exception to enable thread-safe exception handling by callers.
Diffstat (limited to 'src/subtitle_asset.cc')
| -rw-r--r-- | src/subtitle_asset.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc index c7051eae..ba91cf90 100644 --- a/src/subtitle_asset.cc +++ b/src/subtitle_asset.cc @@ -413,7 +413,7 @@ SubtitleAsset::write_xml (ostream& s) const << " <Language>" << _language << "</Language>\n"; if (_load_font_nodes.size() > 1) { - throw MiscError ("multiple LoadFont nodes not supported"); + boost::throw_exception (MiscError ("multiple LoadFont nodes not supported")); } if (!_load_font_nodes.empty ()) { |
