Actually process the escaped character
...was like this ever since it got introduced in
b759584735
"implemented date acceptance patterns
API." Found with clang-tidy's clang-analyzer-deadcode.DeadStores.
Change-Id: Ib1572ca9f254e3e835dbbe088f6a48c24dbd8235
This commit is contained in:
@@ -1101,7 +1101,7 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
|
||||
break;
|
||||
case '\\':
|
||||
cChar = sTheDateEditFormat.iterateCodePoints( &nIndex);
|
||||
break;
|
||||
goto handleDefault;
|
||||
case '-':
|
||||
case '.':
|
||||
case '/':
|
||||
@@ -1114,6 +1114,7 @@ void LCFormatNode::generateCode (const OFileWriter &of) const
|
||||
cDateSep2 = cChar;
|
||||
// fallthru
|
||||
default:
|
||||
handleDefault:
|
||||
if (!cDateSep)
|
||||
cDateSep = cChar;
|
||||
if (!cDateSep2)
|
||||
|
Reference in New Issue
Block a user