projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
024cce2
)
Cleanup: assert.
author
Carl Hetherington
<cth@carlh.net>
Sat, 14 Oct 2023 19:43:52 +0000
(21:43 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 14 Oct 2023 19:43:52 +0000
(21:43 +0200)
src/lib/font_config.cc
patch
|
blob
|
history
diff --git
a/src/lib/font_config.cc
b/src/lib/font_config.cc
index 04f426cf97abc8eb4a5044861713ba95a1d26ae2..653c9ba84683fec52e4fb39f29e6ca04e104a284 100644
(file)
--- a/
src/lib/font_config.cc
+++ b/
src/lib/font_config.cc
@@
-57,6
+57,8
@@
FontConfig::~FontConfig()
string
FontConfig::make_font_available(shared_ptr<dcpomatic::Font> font)
{
+ DCPOMATIC_ASSERT(font);
+
auto existing = _available_fonts.find(font->content());
if (existing != _available_fonts.end()) {
return existing->second;