Commit 437553ec authored by Albert Astals Cid's avatar Albert Astals Cid Committed by Albert Astals Cid

[cpp] change page_private::init_font_info_cache() to a void method.

We already have a boolean font_info_cache_initialized, no need to
guess the initialization result by the size of initialized cache.
parent 57de3219
......@@ -50,7 +50,7 @@ public:
std::vector<font_info> font_info_cache;
bool font_info_cache_initialized;
size_t init_font_info_cache();
void init_font_info_cache();
......@@ -57,10 +57,10 @@ page_private::~page_private()
delete transition;
size_t page_private::init_font_info_cache()
void page_private::init_font_info_cache()
if (font_info_cache_initialized)
return font_info_cache.size();
poppler::font_iterator it(index, doc);
......@@ -69,7 +69,7 @@ size_t page_private::init_font_info_cache()
font_info_cache_initialized = true;
return font_info_cache.size();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment