diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:35:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:36:31 +0200 |
commit | ba15d30e8d0bf74de621df9744a47fb768782a2e (patch) | |
tree | 248d6a975657a306af1208243482c208fe1315b3 /xmloff/source/text | |
parent | b919eeaa2f59cd36b87f80b8922d32c23e09b764 (diff) |
loplugin:simplifybool
Change-Id: I4a7ba9192956941f05e68ae8df3263d609a7c4dc
Diffstat (limited to 'xmloff/source/text')
-rw-r--r-- | xmloff/source/text/txtlists.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xmloff/source/text/txtlists.cxx b/xmloff/source/text/txtlists.cxx index 95b207ac147f..5c2e13969593 100644 --- a/xmloff/source/text/txtlists.cxx +++ b/xmloff/source/text/txtlists.cxx @@ -327,9 +327,7 @@ void XMLTextListsHelper::PopListFromStack() bool XMLTextListsHelper::EqualsToTopListStyleOnStack( const OUString& sListId ) const { - return mpListStack != 0 - ? sListId == mpListStack->back().second - : false; + return mpListStack != 0 && sListId == mpListStack->back().second; } OUString @@ -472,7 +470,7 @@ XMLTextListsHelper::MakeNumRule( } } - bool bSetDefaults(io_pSetDefaults ? *io_pSetDefaults : false); + bool bSetDefaults(io_pSetDefaults && *io_pSetDefaults); if ( !xNumRules.is() ) { // If no style name has been specified for this style and for any |