Skip to content

Commit

Permalink
Minor code cleanup.
Browse files Browse the repository at this point in the history
C++ operator overloads are much cleaner than C strcmp.
  • Loading branch information
ruediger committed Aug 30, 2015
1 parent 6386e70 commit f09f7f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/vobsub2srt.c++
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,10 @@ int main(int argc, char **argv) {
}

// Init Tesseract
char const *tess_path = tesseract_data_path.c_str();
if (!strcmp(tess_path, TESSERACT_DEFAULT_PATH))
tess_path = NULL;
char const *tess_path = NULL;
if (tesseract_data_path != TESSERACT_DEFAULT_PATH)
tess_path = tesseract_data_path.c_str();

#ifdef CONFIG_TESSERACT_NAMESPACE
TessBaseAPI tess_base_api;
if(tess_base_api.Init(tess_path, tess_lang) == -1) {
Expand Down

0 comments on commit f09f7f7

Please sign in to comment.