From 3baf0d8076b19c4400a8af1394d6b51443a84785 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Tue, 12 Mar 2019 12:18:35 +0100 Subject: [PATCH] Fix boolean assignments Signed-off-by: Stefan Weil --- src/ccmain/fixspace.cpp | 3 +-- src/ccstruct/pageres.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ccmain/fixspace.cpp b/src/ccmain/fixspace.cpp index 171efab2a3..9faaa3fc95 100644 --- a/src/ccmain/fixspace.cpp +++ b/src/ccmain/fixspace.cpp @@ -4,7 +4,6 @@ * spacing possibilities, trying to use context to improve the * word spacing * Author: Phil Cheatle - * Created: Thu Oct 21 11:38:43 BST 1993 * * (C) Copyright 1993, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); @@ -445,7 +444,7 @@ void transform_to_next_perm(WERD_RES_LIST &words) { *copy_word = *(prev_word->word); // deep copy combo = new WERD_RES(copy_word); - combo->combination = TRUE; + combo->combination = true; combo->x_height = prev_word->x_height; prev_word->part_of_combo = true; prev_word_it.add_before_then_move(combo); diff --git a/src/ccstruct/pageres.cpp b/src/ccstruct/pageres.cpp index ce61fc2ac2..e2556ccb12 100644 --- a/src/ccstruct/pageres.cpp +++ b/src/ccstruct/pageres.cpp @@ -7,7 +7,6 @@ * Holds data used during word recognition. * Holds information about alternative spacing paths. * Author: Phil Cheatle - * Created: Tue Sep 22 08:42:49 BST 1992 * * (C) Copyright 1992, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); @@ -177,7 +176,7 @@ ROW_RES::ROW_RES(bool merge_similar_words, ROW *the_row) { *copy_word = *(word_it.data()); // deep copy combo = new WERD_RES(copy_word); combo->x_height = the_row->x_height(); - combo->combination = TRUE; + combo->combination = true; word_res_it.add_to_end(combo); } word_res->part_of_combo = TRUE;