Skip to content

Commit caffb31

Browse files
committed
Remove unneeded 'struct' from TessBaseAPI::GetHOCRText (issue #414)
It conflicts with a previous 'class' declaration for ETEXT_DESC: include/tesseract/baseapi.h:594:21: Struct 'ETEXT_DESC' was previously declared as a class Signed-off-by: Stefan Weil <[email protected]>
1 parent a6871a8 commit caffb31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/baseapi.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ char* TessBaseAPI::GetHOCRText(int page_number) {
14571457
* GetHOCRText
14581458
* STL removed from original patch submission and refactored by rays.
14591459
*/
1460-
char* TessBaseAPI::GetHOCRText(struct ETEXT_DESC* monitor, int page_number) {
1460+
char* TessBaseAPI::GetHOCRText(ETEXT_DESC* monitor, int page_number) {
14611461
if (tesseract_ == NULL ||
14621462
(page_res_ == NULL && Recognize(monitor) < 0))
14631463
return NULL;

api/baseapi.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ class TESS_API TessBaseAPI {
591591
* cancel the recognition
592592
* receive progress callbacks
593593
*/
594-
char* GetHOCRText(struct ETEXT_DESC* monitor, int page_number);
594+
char* GetHOCRText(ETEXT_DESC* monitor, int page_number);
595595

596596
/**
597597
* Make a HTML-formatted string with hOCR markup from the internal

0 commit comments

Comments
 (0)