summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-08-07 09:43:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-08-07 21:44:29 +0200
commite17e3dd6d9c06f0dc25246a4e0fb82970d74ba39 (patch)
tree502a77bd6b062cae36cede7bdb2879ff5a62c1e3
parentc8284fea44bd2e0170da8cbfab0c041e287ea99b (diff)
cid#1465671 Unchecked return value
Change-Id: I796799f2964f70f107acc53d376379a79e044472 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100294 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--xmloff/source/text/txtparai.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx
index f957f216fc0e..54a86e01157b 100644
--- a/xmloff/source/text/txtparai.cxx
+++ b/xmloff/source/text/txtparai.cxx
@@ -1937,26 +1937,23 @@ XMLParaContext::XMLParaContext(
break;
case XML_TOK_TEXT_P_OUTLINE_CONTENT_VISIBLE:
{
- mbOutlineContentVisible = true;
- ::sax::Converter::convertBool(mbOutlineContentVisible, rValue);
+ bool bBool(false);
+ if (::sax::Converter::convertBool(bBool, rValue))
+ mbOutlineContentVisible = bBool;
}
break;
case XML_TOK_TEXT_P_IS_LIST_HEADER:
{
bool bBool(false);
- if( ::sax::Converter::convertBool( bBool, rValue ) )
- {
+ if (::sax::Converter::convertBool(bBool, rValue))
bIsListHeader = bBool;
- }
}
break;
case XML_TOK_TEXT_P_RESTART_NUMBERING:
{
bool bBool(false);
if (::sax::Converter::convertBool(bBool, rValue))
- {
bIsRestart = bBool;
- }
}
break;
case XML_TOK_TEXT_P_START_VALUE: