Skip to content

Commit e254c9f

Browse files
author
Jaroslaw Kubik
committed
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.
1 parent 8f6242f commit e254c9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ccutil/ocrclass.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@ class ETEXT_DESC { // output header
174174
int bottom)
175175
{
176176
if ( ths->progress_callback ) {
177-
(*(ths->progress_callback))(ths->progress, left, right, top, bottom);
177+
return (*(ths->progress_callback))(ths->progress, left, right, top, bottom);
178178
}
179+
return true;
179180
}
180181

181182
};

0 commit comments

Comments
 (0)