Skip to content

Commit 92b9f9f

Browse files
committed
ccmain: Replace TRUE, FALSE by true, false
Signed-off-by: Stefan Weil <[email protected]>
1 parent 21547d4 commit 92b9f9f

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/ccmain/reject.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ void Tesseract::set_done(WERD_RES *word, int16_t pass) {
7070
if (word->done && (pass == 1) && (!word_from_dict || word_is_ambig) &&
7171
one_ell_conflict(word, false)) {
7272
if (tessedit_rejection_debug) tprintf("one_ell_conflict detected\n");
73-
word->done = FALSE;
73+
word->done = false;
7474
}
7575
if (word->done && ((!word_from_dict &&
7676
word->best_choice->permuter() != NUMBER_PERM) || word_is_ambig)) {
7777
if (tessedit_rejection_debug) tprintf("non-dict or ambig word detected\n");
78-
word->done = FALSE;
78+
word->done = false;
7979
}
8080
if (tessedit_rejection_debug) {
8181
tprintf("set_done(): done=%d\n", word->done);

src/ccmain/tesseractclass.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
// training-related code, but they don't interfere with normal
2020
// recognition operation.
2121
// Author: Ray Smith
22-
// Created: Fri Mar 07 08:17:01 PST 2008
2322
//
2423
// (C) Copyright 2008, Google Inc.
2524
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -490,7 +489,7 @@ Tesseract::Tesseract()
490489
"Min acceptable orientation margin", this->params()),
491490
BOOL_MEMBER(textord_tabfind_show_vlines, false, "Debug line finding",
492491
this->params()),
493-
BOOL_MEMBER(textord_use_cjk_fp_model, FALSE, "Use CJK fixed pitch model",
492+
BOOL_MEMBER(textord_use_cjk_fp_model, false, "Use CJK fixed pitch model",
494493
this->params()),
495494
BOOL_MEMBER(poly_allow_detailed_fx, false,
496495
"Allow feature extractors to see the original outline",
@@ -689,7 +688,7 @@ void Tesseract::PrepareForTessOCR(BLOCK_LIST* block_list,
689688
// (from the last SegmentImage call) with blobs from the real image to be used
690689
// for OCR.
691690
if (splitter_.HasDifferentSplitStrategies()) {
692-
BLOCK block("", TRUE, 0, 0, 0, 0, pixGetWidth(pix_binary_),
691+
BLOCK block("", true, 0, 0, 0, 0, pixGetWidth(pix_binary_),
693692
pixGetHeight(pix_binary_));
694693
Pix* pix_for_ocr = split_for_ocr ? splitter_.splitted_image() :
695694
splitter_.orig_pix();

src/ccmain/tesseractclass.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ class Tesseract : public Wordrec {
11011101
double_VAR_H(min_orientation_margin, 7.0,
11021102
"Min acceptable orientation margin");
11031103
BOOL_VAR_H(textord_tabfind_show_vlines, false, "Debug line finding");
1104-
BOOL_VAR_H(textord_use_cjk_fp_model, FALSE, "Use CJK fixed pitch model");
1104+
BOOL_VAR_H(textord_use_cjk_fp_model, false, "Use CJK fixed pitch model");
11051105
BOOL_VAR_H(poly_allow_detailed_fx, false,
11061106
"Allow feature extractors to see the original outline");
11071107
BOOL_VAR_H(tessedit_init_config_only, false,

0 commit comments

Comments
 (0)