projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace StringError with the equivalent std::runtime_error.
[dcpomatic.git]
/
src
/
lib
/
dcp_examiner.cc
diff --git
a/src/lib/dcp_examiner.cc
b/src/lib/dcp_examiner.cc
index fe2660d48508834c38f9b6c678c5259d3d9162cd..22b10ab84182f1890eb80804c29a2f97d98be6a0 100644
(file)
--- a/
src/lib/dcp_examiner.cc
+++ b/
src/lib/dcp_examiner.cc
@@
-39,6
+39,7
@@
using std::list;
using std::cout;
using std::list;
using std::cout;
+using std::runtime_error;
using boost::shared_ptr;
using boost::dynamic_pointer_cast;
using boost::shared_ptr;
using boost::dynamic_pointer_cast;
@@
-130,7
+131,7
@@
DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content)
_kdm_valid = false;
if (_encrypted && content->kdm ()) {
/* XXX: maybe don't use an exception for this */
_kdm_valid = false;
if (_encrypted && content->kdm ()) {
/* XXX: maybe don't use an exception for this */
- throw
StringE
rror (_("The KDM does not decrypt the DCP. Perhaps it is targeted at the wrong CPL."));
+ throw
runtime_e
rror (_("The KDM does not decrypt the DCP. Perhaps it is targeted at the wrong CPL."));
}
}
}
}
}
}