mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-06 01:04:57 +08:00
Return a value from default progress report function
The progress reporting function returns a boolean. The returned value is never used by the tesseract and its meaing is not documented, which renders the value meaningless. Still, lack of return should not be premitted.
This commit is contained in:
parent
8f6242fd4f
commit
e254c9fa38
@ -174,8 +174,9 @@ private:
|
||||
int bottom)
|
||||
{
|
||||
if ( ths->progress_callback ) {
|
||||
(*(ths->progress_callback))(ths->progress, left, right, top, bottom);
|
||||
return (*(ths->progress_callback))(ths->progress, left, right, top, bottom);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user