mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
cube: Use local variable which was reported as unused
The local variable first_lower was assigned a value which was not used. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
c714330d2f
commit
d11b7e0624
@ -310,7 +310,7 @@ bool CubeUtils::IsCaseInvariant(const char_32 *str32, CharSet *char_set) {
|
||||
if (first_upper)
|
||||
capitalized = true;
|
||||
prev_upper = first_upper;
|
||||
prev_lower = islower(str32[0]);
|
||||
prev_lower = first_lower;
|
||||
for (int c = 1; str32[c] != 0; ++c) {
|
||||
cur_upper = isupper(str32[c]);
|
||||
cur_lower = islower(str32[c]);
|
||||
@ -329,7 +329,7 @@ bool CubeUtils::IsCaseInvariant(const char_32 *str32, CharSet *char_set) {
|
||||
if (first_upper)
|
||||
capitalized = true;
|
||||
prev_upper = first_upper;
|
||||
prev_lower = unicharset->get_islower(char_set->ClassID(str32[0]));
|
||||
prev_lower = first_lower;
|
||||
|
||||
for (int c = 1; c < StrLen(str32); ++c) {
|
||||
cur_upper = unicharset->get_isupper(char_set->ClassID(str32[c]));
|
||||
|
Loading…
Reference in New Issue
Block a user