diff --git a/api/capi.cpp b/api/capi.cpp index 9511b16db6..6fbd364bbc 100644 --- a/api/capi.cpp +++ b/api/capi.cpp @@ -687,7 +687,7 @@ TESS_API const TessPageIterator* TESS_CALL TessResultIteratorGetPageIteratorCons return handle; } -TESS_API const TessChoiceIterator* TESS_CALL TessResultIteratorGetChoiceIterator(const TessResultIterator* handle) +TESS_API TessChoiceIterator* TESS_CALL TessResultIteratorGetChoiceIterator(const TessResultIterator* handle) { return new TessChoiceIterator(*handle); } diff --git a/api/capi.h b/api/capi.h index e813916cfc..82a6b55b9a 100644 --- a/api/capi.h +++ b/api/capi.h @@ -344,7 +344,7 @@ TESS_API TessPageIterator* TESS_CALL TessResultIteratorGetPageIterator(TessResultIterator* handle); TESS_API const TessPageIterator* TESS_CALL TessResultIteratorGetPageIteratorConst(const TessResultIterator* handle); -TESS_API const TessChoiceIterator* +TESS_API TessChoiceIterator* TESS_CALL TessResultIteratorGetChoiceIterator(const TessResultIterator* handle); TESS_API BOOL TESS_CALL TessResultIteratorNext(TessResultIterator* handle, TessPageIteratorLevel level);