diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-07-16 21:12:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-07-17 12:22:41 +0200 |
commit | 52c0c8a2b5a38f02125460c6e21d21c2e8c656cd (patch) | |
tree | 8c8e71cb0145741559e3dd27ddf136fcbed915f0 /sc | |
parent | 793267e2b7f41c4ce24615491ac2153040a8a148 (diff) |
cid#1507325 Unchecked return value
Change-Id: Ie47ba66cc83130472c68dc5f45c56cd20c9d406f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137143
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/XMLTrackedChangesContext.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/filter/xml/XMLTrackedChangesContext.cxx b/sc/source/filter/xml/XMLTrackedChangesContext.cxx index 8294eb979a92..a14eab484e0a 100644 --- a/sc/source/filter/xml/XMLTrackedChangesContext.cxx +++ b/sc/source/filter/xml/XMLTrackedChangesContext.cxx @@ -431,7 +431,8 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > ScXMLChangeInfoContext void SAL_CALL ScXMLChangeInfoContext::endFastElement( sal_Int32 /*nElement*/ ) { aInfo.sUser = sAuthorBuffer.makeStringAndClear(); - ::sax::Converter::parseDateTime(aInfo.aDateTime, sDateTimeBuffer); + if (!::sax::Converter::parseDateTime(aInfo.aDateTime, sDateTimeBuffer)) + SAL_WARN("sc.filter", "ScXMLChangeInfoContext: broken DateTime '" << sDateTimeBuffer.toString() << "'"); sDateTimeBuffer.setLength(0); aInfo.sComment = sCommentBuffer.makeStringAndClear(); pChangeTrackingImportHelper->SetActionInfo(aInfo); |