Kaydet (Commit) 397362d8 authored tarafından Eike Rathke's avatar Eike Rathke

work around nonsense -Werror=maybe-uninitialized, fdo#80166 follow-up

Change-Id: I0f9cf74550e43d174bf6ac75e70c51ab7f51ccf8
üst 836e504c
......@@ -1210,6 +1210,13 @@ bool ImpSvNumberInputScan::IsAcceptedDatePattern( sal_uInt16 nStartPatternAt )
nMaxLen = 2;
nMaxVal = 31;
break;
default:
// This merely exists against
// -Werror=maybe-uninitialized, which is nonsense
// after the (c == 'M' || c == 'D') check above,
// but ...
nMaxLen = 2;
nMaxVal = 31;
}
bOk = (sStrArray[nNext].getLength() <= nMaxLen);
if (bOk)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment