Skip to content

Commit

Permalink
Improve ABI compatibility with version 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Nov 10, 2019
1 parent 960583c commit 87291ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/api/baseapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,12 @@ class TESS_API TessBaseAPI {
int timeout_millisec,
TessResultRenderer* renderer,
int tessedit_page_number);
// There's currently no way to pass a document title from the
// Tesseract command line, and we have multiple places that choose
// to set the title to an empty string. Using a single named
// variable will hopefully reduce confusion if the situation changes
// in the future.
const char *unknown_title_ = "";
}; // class TessBaseAPI.

/** Escape a char string - remove &<>"' with HTML codes. */
Expand Down
4 changes: 2 additions & 2 deletions src/ccutil/serialis.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ class TFile {
int FWrite(const void* buffer, size_t size, int count);

private:
// The buffered data from the file.
GenericVector<char>* data_;
// The number of bytes used so far.
int offset_;
// The buffered data from the file.
GenericVector<char>* data_;
// True if the data_ pointer is owned by *this.
bool data_is_owned_;
// True if the TFile is open for writing.
Expand Down

0 comments on commit 87291ff

Please sign in to comment.