summaryrefslogtreecommitdiff
path: root/src/subtitle_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-28 01:15:24 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-28 01:15:24 +0000
commitea81a192a65a03b664dac61de21e06cea7aa97a2 (patch)
treef21447aeb9f24320ea6c1c4cb7a05539646bb85a /src/subtitle_content.cc
parent75788462338b1b4f464d075465da3cb372c40004 (diff)
Purge assert() from src/, at least (not asdcplib).
Diffstat (limited to 'src/subtitle_content.cc')
-rw-r--r--src/subtitle_content.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/subtitle_content.cc b/src/subtitle_content.cc
index 1b5e6a1b..5e7c5b25 100644
--- a/src/subtitle_content.cc
+++ b/src/subtitle_content.cc
@@ -24,6 +24,7 @@
#include "font.h"
#include "text.h"
#include "subtitle_string.h"
+#include "dcp_assert.h"
#include "AS_DCP.h"
#include "KM_util.h"
#include <libxml++/nodes/element.h>
@@ -121,8 +122,8 @@ SubtitleContent::maybe_add_subtitle (string text, ParseState const & parse_state
return;
}
- assert (!parse_state.text_nodes.empty ());
- assert (!parse_state.subtitle_nodes.empty ());
+ DCP_ASSERT (!parse_state.text_nodes.empty ());
+ DCP_ASSERT (!parse_state.subtitle_nodes.empty ());
dcp::Font effective_font (parse_state.font_nodes);
dcp::Text effective_text (*parse_state.text_nodes.back ());