[Libreoffice-commits] core.git: editeng/source

Stephan Bergmann sbergman at redhat.com
Tue Oct 24 18:50:46 UTC 2017


 editeng/source/items/paraitem.cxx |    2 +-
 editeng/source/items/textitem.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a2d814ac1d7beb6fbe4b9cb7b75814f4b08b8e59
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Oct 24 20:48:35 2017 +0200

    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

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:
         {


More information about the Libreoffice-commits mailing list