summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-10-24 20:48:35 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-10-24 20:48:35 +0200
commita2d814ac1d7beb6fbe4b9cb7b75814f4b08b8e59 (patch)
tree8efdf897adc0c9a68073acb2aa2b7e76b3493773 /editeng
parent28119343b60a20b64fde6470967c7582ed59c807 (diff)
loplugin:implicitboolconversion
("explicit conversion (NoOp) from 'const bool' to 'bool' implicitly cast back to 'const bool'", seen now with a recent trunk Clang 6, and with experimentally enabling -std=gnu++17 for the LO build; not sure what caused this to be triggered only now for me) Change-Id: I5310961b1d50870d3ae06554e4cb37e12ac68151
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/paraitem.cxx2
-rw-r--r--editeng/source/items/textitem.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/items/paraitem.cxx b/editeng/source/items/paraitem.cxx
index d44253facaa8..52a8287cfecd 100644
--- a/editeng/source/items/paraitem.cxx
+++ b/editeng/source/items/paraitem.cxx
@@ -572,7 +572,7 @@ bool SvxHyphenZoneItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) con
switch(nMemberId)
{
case MID_IS_HYPHEN:
- rVal <<= (bool)bHyphen;
+ rVal <<= bHyphen;
break;
case MID_HYPHEN_MIN_LEAD:
rVal <<= (sal_Int16)nMinLead;
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx
index 56b07c8e3588..f8cd6f193301 100644
--- a/editeng/source/items/textitem.cxx
+++ b/editeng/source/items/textitem.cxx
@@ -2496,7 +2496,7 @@ bool SvxTwoLinesItem::QueryValue( css::uno::Any& rVal,
switch( nMemberId )
{
case MID_TWOLINES:
- rVal <<= (bool) bOn;
+ rVal <<= bOn;
break;
case MID_START_BRACKET:
{