Skip to content

Commit

Permalink
Fix boolean assignments
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Mar 12, 2019
1 parent e965de7 commit 3baf0d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/ccmain/fixspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions src/ccstruct/pageres.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3baf0d8

Please sign in to comment.