LTRResultIterator: Define virtual destructor in .cpp file

This fixes compiler warnings from clang:

src/ccmain/ltrresultiterator.h:48:16: warning:
 'LTRResultIterator' has no out-of-line virtual method definitions;
 its vtable will be emitted in every translation unit [-Wweak-vtables]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-09-03 14:58:39 +02:00
parent c635cdf5d5
commit d926655cfe
2 changed files with 3 additions and 1 deletions

View File

@ -37,6 +37,8 @@ LTRResultIterator::LTRResultIterator(PAGE_RES* page_res, Tesseract* tesseract,
paragraph_separator_("\n") {
}
LTRResultIterator::~LTRResultIterator() = default;
// Returns the null terminated UTF-8 encoded text string for the current
// object at the given level. Use delete [] to free after use.
char* LTRResultIterator::GetUTF8Text(PageIteratorLevel level) const {

View File

@ -65,7 +65,7 @@ class TESS_API LTRResultIterator : public PageIterator {
int rect_left, int rect_top,
int rect_width, int rect_height);
virtual ~LTRResultIterator() = default;
virtual ~LTRResultIterator();
// LTRResultIterators may be copied! This makes it possible to iterate over
// all the objects at a lower level, while maintaining an iterator to