kareemu3 / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

C API's TessResultIteratorGetChoiceIterator returns const TessPageIterator* #1342

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call TessResultIteratorGetChoiceIterator, get back a const TessPageIterator*
2. Call either TessResultIteratorNext or TessChoiceIteratorDelete with the 
result

What is the expected output? What do you see instead?
Get a compiler warning regarding discarding const qualifier.

Please use labels and text to provide additional information.
TessResultIteratorGetChoiceIterator should not return a const 
TessPageIterator*, since by doing so it necessitates casting away the const 
qualifier just to free or iterate through it.

Original issue reported on code.google.com by kiy...@gmail.com on 12 Oct 2014 at 8:54

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks. Commited in Revision: 239f350a7288

Original comment by zde...@gmail.com on 14 Oct 2014 at 8:57