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 <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2016-09-05 13:08:22 +02:00
parent a6871a8c91
commit caffb3133b
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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