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

Stephan Bergmann sbergman at redhat.com
Wed May 7 03:32:21 PDT 2014


 sw/source/core/layout/atrfrm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3703e3985e0aa9325cf9256a78bab6e62a24ede4
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed May 7 12:31:45 2014 +0200

    loplugin:implicitboolconversion
    
    Change-Id: I0dacaa9fb08062aba758613bd25ebcf7039f36e0

diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx
index 558ddbd..4b38b4f 100644
--- a/sw/source/core/layout/atrfrm.cxx
+++ b/sw/source/core/layout/atrfrm.cxx
@@ -560,7 +560,7 @@ void SwFmtCntnt::SetNewCntntIdx( const SwNodeIndex *pIdx )
 bool SwFmtCntnt::operator==( const SfxPoolItem& rAttr ) const
 {
     OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
-    if( (bool)pStartNode ^ (bool)((SwFmtCntnt&)rAttr).pStartNode )
+    if( (bool)pStartNode != (bool)((SwFmtCntnt&)rAttr).pStartNode )
         return false;
     if( pStartNode )
         return ( *pStartNode == *((SwFmtCntnt&)rAttr).GetCntntIdx() );


More information about the Libreoffice-commits mailing list