Skip to content

Commit

Permalink
Remove unneeded 'struct' from TessBaseAPI::GetHOCRText (issue #414)
Browse files Browse the repository at this point in the history
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 <sw@weilnetz.de>
  • Loading branch information
stweil committed Sep 5, 2016
1 parent a6871a8 commit caffb31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/baseapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1457,7 +1457,7 @@ char* TessBaseAPI::GetHOCRText(int page_number) {
* GetHOCRText
* STL removed from original patch submission and refactored by rays.
*/
char* TessBaseAPI::GetHOCRText(struct ETEXT_DESC* monitor, int page_number) {
char* TessBaseAPI::GetHOCRText(ETEXT_DESC* monitor, int page_number) {
if (tesseract_ == NULL ||
(page_res_ == NULL && Recognize(monitor) < 0))
return NULL;
Expand Down
2 changes: 1 addition & 1 deletion api/baseapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ class TESS_API TessBaseAPI {
* cancel the recognition
* receive progress callbacks
*/
char* GetHOCRText(struct ETEXT_DESC* monitor, int page_number);
char* GetHOCRText(ETEXT_DESC* monitor, int page_number);

/**
* Make a HTML-formatted string with hOCR markup from the internal
Expand Down

0 comments on commit caffb31

Please sign in to comment.