summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-27 15:02:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-27 15:05:58 +0200
commit186c82e81f3d75be0971ff1b561172a182e46a97 (patch)
tree634630c96391e7427d5331d46aeda2afc1d22494 /i18npool
parentad3d4a94e5dda6aa2ae39d903f0f9d13c9f85ef7 (diff)
Actually process the escaped character
...was like this ever since it got introduced in b75958473503f7eca096b8843e57a031bbabe0ab "implemented date acceptance patterns API." Found with clang-tidy's clang-analyzer-deadcode.DeadStores. Change-Id: Ib1572ca9f254e3e835dbbe088f6a48c24dbd8235
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/localedata/LocaleNode.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx
index 4a41aa5385aa..7db424ce70ef 100644
--- a/i18npool/source/localedata/LocaleNode.cxx
+++ b/i18npool/source/localedata/LocaleNode.cxx
@@ -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)