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:
Stephan Bergmann
2015-08-27 15:02:04 +02:00
parent ad3d4a94e5
commit 186c82e81f

View File

@@ -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)