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

Tor Lillqvist tml at collabora.com
Mon Oct 19 01:38:36 PDT 2015


 editeng/source/uno/unotext.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 1778ad2545444f4a6caa878092257a18e8390573
Author: Tor Lillqvist <tml at collabora.com>
Date:   Mon Oct 19 11:36:06 2015 +0300

    WaE: loplugin:defaultparams
    
    Change-Id: I65f4cc10c4a3dc5ffc21b64d76dc32f1613a0062

diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx
index c009171..782957a 100644
--- a/editeng/source/uno/unotext.cxx
+++ b/editeng/source/uno/unotext.cxx
@@ -701,7 +701,7 @@ bool SvxUnoTextRangeBase::GetPropertyValueHelper(  SfxItemSet& rSet, const SfxIt
             if( eState != SfxItemState::SET && eState != SfxItemState::DEFAULT)
                 throw uno::RuntimeException();
 
-            const SvxNumBulletItem* pBulletItem = static_cast<const SvxNumBulletItem*>(rSet.GetItem( EE_PARA_NUMBULLET, true ));
+            const SvxNumBulletItem* pBulletItem = static_cast<const SvxNumBulletItem*>(rSet.GetItem( EE_PARA_NUMBULLET ));
 
             if( pBulletItem == NULL )
                 throw uno::RuntimeException();
@@ -742,7 +742,7 @@ bool SvxUnoTextRangeBase::GetPropertyValueHelper(  SfxItemSet& rSet, const SfxIt
             SfxItemState eState = rSet.GetItemState( EE_PARA_BULLETSTATE, true );
             if( eState == SfxItemState::SET || eState == SfxItemState::DEFAULT )
             {
-                const SfxBoolItem* pItem = static_cast<const SfxBoolItem*>(rSet.GetItem( EE_PARA_BULLETSTATE, true ));
+                const SfxBoolItem* pItem = static_cast<const SfxBoolItem*>(rSet.GetItem( EE_PARA_BULLETSTATE ));
                 bState = pItem->GetValue();
             }
 


More information about the Libreoffice-commits mailing list