Skip to content

Commit d11b7e0

Browse files
committed
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 <[email protected]>
1 parent c714330 commit d11b7e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cube/cube_utils.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ bool CubeUtils::IsCaseInvariant(const char_32 *str32, CharSet *char_set) {
310310
if (first_upper)
311311
capitalized = true;
312312
prev_upper = first_upper;
313-
prev_lower = islower(str32[0]);
313+
prev_lower = first_lower;
314314
for (int c = 1; str32[c] != 0; ++c) {
315315
cur_upper = isupper(str32[c]);
316316
cur_lower = islower(str32[c]);
@@ -329,7 +329,7 @@ bool CubeUtils::IsCaseInvariant(const char_32 *str32, CharSet *char_set) {
329329
if (first_upper)
330330
capitalized = true;
331331
prev_upper = first_upper;
332-
prev_lower = unicharset->get_islower(char_set->ClassID(str32[0]));
332+
prev_lower = first_lower;
333333

334334
for (int c = 1; c < StrLen(str32); ++c) {
335335
cur_upper = unicharset->get_isupper(char_set->ClassID(str32[c]));

0 commit comments

Comments
 (0)