mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-05 02:47:00 +08:00
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:
parent
c635cdf5d5
commit
d926655cfe
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user