diff --git a/src/ccmain/ltrresultiterator.cpp b/src/ccmain/ltrresultiterator.cpp index ead99d8c..8ae38501 100644 --- a/src/ccmain/ltrresultiterator.cpp +++ b/src/ccmain/ltrresultiterator.cpp @@ -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 { diff --git a/src/ccmain/ltrresultiterator.h b/src/ccmain/ltrresultiterator.h index 2d310350..665aa04a 100644 --- a/src/ccmain/ltrresultiterator.h +++ b/src/ccmain/ltrresultiterator.h @@ -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