diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-10-20 10:49:29 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-20 10:49:29 +0100 |
| commit | e0adfd85dd7987ee2b77eea7f6d3c13885729a38 (patch) | |
| tree | 924ed417edc2c7c579a58c868d8370f3346008d9 /src/lib/image.cc | |
| parent | 4a18e763a17cf046fabe3aad7ab66546124a93a9 (diff) | |
Replace StringError with the equivalent std::runtime_error.
Diffstat (limited to 'src/lib/image.cc')
| -rw-r--r-- | src/lib/image.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/image.cc b/src/lib/image.cc index 4e1894ed6..134172038 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -43,6 +43,7 @@ using std::min; using std::cout; using std::cerr; using std::list; +using std::runtime_error; using boost::shared_ptr; using dcp::Size; @@ -138,7 +139,7 @@ Image::crop_scale_window ( ); if (!scale_context) { - throw StringError (N_("Could not allocate SwsContext")); + throw runtime_error (N_("Could not allocate SwsContext")); } DCPOMATIC_ASSERT (yuv_to_rgb < dcp::YUV_TO_RGB_COUNT); |
