diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-11 08:41:51 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-11 09:48:17 +0200 |
commit | 0f2a9bb2139becbf353db792b22c13a5ded25a6a (patch) | |
tree | f6c3757fff359a96410b80cd16e754d4cbf84ed1 /editeng/source/uno | |
parent | 4712396b3b6c61b7a54ca631790561eeea5ffc93 (diff) |
loplugin: defaultparams
Change-Id: I2a1255c00a051b29381ec57c380eafb08c4900d9
Diffstat (limited to 'editeng/source/uno')
-rw-r--r-- | editeng/source/uno/unoedhlp.cxx | 4 | ||||
-rw-r--r-- | editeng/source/uno/unofdesc.cxx | 14 | ||||
-rw-r--r-- | editeng/source/uno/unofored.cxx | 6 | ||||
-rw-r--r-- | editeng/source/uno/unoforou.cxx | 6 | ||||
-rw-r--r-- | editeng/source/uno/unotext.cxx | 14 |
5 files changed, 22 insertions, 22 deletions
diff --git a/editeng/source/uno/unoedhlp.cxx b/editeng/source/uno/unoedhlp.cxx index c966a1ab588f..460eda3c65dd 100644 --- a/editeng/source/uno/unoedhlp.cxx +++ b/editeng/source/uno/unoedhlp.cxx @@ -188,7 +188,7 @@ bool SvxEditSourceHelper::GetAttributeRun( sal_Int32& nStartIndex, sal_Int32& nE if ( nLen ) { sal_Int32 nStartIdx, nEndIdx; - GetAttributeRun( nStartIdx, nEndIdx, rEE, nParaIdx, nLen, false ); + GetAttributeRun( nStartIdx, nEndIdx, rEE, nParaIdx, nLen ); SfxItemSet aSet = rEE.GetAttribs( nParaIdx, nLen-1, nLen, GetAttribsFlags::CHARATTRIBS ); if ( aSet == aCrrntSet ) { @@ -212,7 +212,7 @@ bool SvxEditSourceHelper::GetAttributeRun( sal_Int32& nStartIndex, sal_Int32& nE if ( nLen ) { sal_Int32 nStartIdx, nEndIdx; - GetAttributeRun( nStartIdx, nEndIdx, rEE, nParaIdx, 0, false ); + GetAttributeRun( nStartIdx, nEndIdx, rEE, nParaIdx, 0 ); SfxItemSet aSet = rEE.GetAttribs( nParaIdx, 0, 1, GetAttribsFlags::CHARATTRIBS ); if ( aSet == aCrrntSet ) { diff --git a/editeng/source/uno/unofdesc.cxx b/editeng/source/uno/unofdesc.cxx index e2cb103fb3fb..3a82ced47fac 100644 --- a/editeng/source/uno/unofdesc.cxx +++ b/editeng/source/uno/unofdesc.cxx @@ -132,7 +132,7 @@ void SvxUnoFontDescriptor::FillFromItemSet( const SfxItemSet& rSet, awt::FontDes { const SfxPoolItem* pItem = NULL; { - const SvxFontItem* pFontItem = static_cast<const SvxFontItem*>(&rSet.Get( EE_CHAR_FONTINFO, true )); + const SvxFontItem* pFontItem = static_cast<const SvxFontItem*>(&rSet.Get( EE_CHAR_FONTINFO )); rDesc.Name = pFontItem->GetFamilyName(); rDesc.StyleName = pFontItem->GetStyleName(); rDesc.Family = sal::static_int_cast< sal_Int16 >( @@ -142,37 +142,37 @@ void SvxUnoFontDescriptor::FillFromItemSet( const SfxItemSet& rSet, awt::FontDes pFontItem->GetPitch()); } { - pItem = &rSet.Get( EE_CHAR_FONTHEIGHT, true ); + pItem = &rSet.Get( EE_CHAR_FONTHEIGHT ); uno::Any aHeight; if( pItem->QueryValue( aHeight, MID_FONTHEIGHT ) ) aHeight >>= rDesc.Height; } { - pItem = &rSet.Get( EE_CHAR_ITALIC, true ); + pItem = &rSet.Get( EE_CHAR_ITALIC ); uno::Any aFontSlant; if(pItem->QueryValue( aFontSlant, MID_POSTURE )) aFontSlant >>= rDesc.Slant; } { - pItem = &rSet.Get( EE_CHAR_UNDERLINE, true ); + pItem = &rSet.Get( EE_CHAR_UNDERLINE ); uno::Any aUnderline; if(pItem->QueryValue( aUnderline, MID_TL_STYLE )) aUnderline >>= rDesc.Underline; } { - pItem = &rSet.Get( EE_CHAR_WEIGHT, true ); + pItem = &rSet.Get( EE_CHAR_WEIGHT ); uno::Any aWeight; if(pItem->QueryValue( aWeight, MID_WEIGHT )) aWeight >>= rDesc.Weight; } { - pItem = &rSet.Get( EE_CHAR_STRIKEOUT, true ); + pItem = &rSet.Get( EE_CHAR_STRIKEOUT ); uno::Any aStrikeOut; if(pItem->QueryValue( aStrikeOut, MID_CROSS_OUT )) aStrikeOut >>= rDesc.Strikeout; } { - const SvxWordLineModeItem* pWLMItem = static_cast<const SvxWordLineModeItem*>(&rSet.Get( EE_CHAR_WLM, true )); + const SvxWordLineModeItem* pWLMItem = static_cast<const SvxWordLineModeItem*>(&rSet.Get( EE_CHAR_WLM )); rDesc.WordLineMode = pWLMItem->GetValue(); } } diff --git a/editeng/source/uno/unofored.cxx b/editeng/source/uno/unofored.cxx index 163dc74c4802..7544e35f5263 100644 --- a/editeng/source/uno/unofored.cxx +++ b/editeng/source/uno/unofored.cxx @@ -59,7 +59,7 @@ sal_Int32 SvxEditEngineForwarder::GetTextLen( sal_Int32 nParagraph ) const OUString SvxEditEngineForwarder::GetText( const ESelection& rSel ) const { - return convertLineEnd(rEditEngine.GetText(rSel, LINEEND_LF), GetSystemLineEnd()); + return convertLineEnd(rEditEngine.GetText(rSel), GetSystemLineEnd()); } SfxItemSet SvxEditEngineForwarder::GetAttribs( const ESelection& rSel, EditEngineAttribs nOnlyHardAttrib ) const @@ -323,9 +323,9 @@ Rectangle SvxEditEngineForwarder::GetCharBounds( sal_Int32 nPara, sal_Int32 nInd // #109151# Don't use paragraph height, but line height // instead. aLast is already CTL-correct if( bIsVertical) - aLast.SetSize( Size( rEditEngine.GetLineHeight(nPara,0), 1 ) ); + aLast.SetSize( Size( rEditEngine.GetLineHeight(nPara), 1 ) ); else - aLast.SetSize( Size( 1, rEditEngine.GetLineHeight(nPara,0) ) ); + aLast.SetSize( Size( 1, rEditEngine.GetLineHeight(nPara) ) ); } return aLast; diff --git a/editeng/source/uno/unoforou.cxx b/editeng/source/uno/unoforou.cxx index e0c863f65d40..93d90290a69f 100644 --- a/editeng/source/uno/unoforou.cxx +++ b/editeng/source/uno/unoforou.cxx @@ -69,7 +69,7 @@ OUString SvxOutlinerForwarder::GetText( const ESelection& rSel ) const //! GetText (ESelection) should probably also be in the Outliner // in the time being use as the hack for the EditEngine: EditEngine* pEditEngine = const_cast<EditEngine*>(&rOutliner.GetEditEngine()); - return pEditEngine->GetText( rSel, LINEEND_LF ); + return pEditEngine->GetText( rSel ); } static SfxItemSet ImplOutlinerForwarderGetAttribs( const ESelection& rSel, EditEngineAttribs nOnlyHardAttrib, EditEngine& rEditEngine ) @@ -324,9 +324,9 @@ Rectangle SvxOutlinerForwarder::GetCharBounds( sal_Int32 nPara, sal_Int32 nIndex // #109151# Don't use paragraph height, but line height // instead. aLast is already CTL-correct if( bIsVertical) - aLast.SetSize( Size( rOutliner.GetLineHeight(nPara,0), 1 ) ); + aLast.SetSize( Size( rOutliner.GetLineHeight(nPara), 1 ) ); else - aLast.SetSize( Size( 1, rOutliner.GetLineHeight(nPara,0) ) ); + aLast.SetSize( Size( 1, rOutliner.GetLineHeight(nPara) ) ); } return aLast; diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index 4933369eeb68..7b35d6e721d3 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -426,7 +426,7 @@ void SAL_CALL SvxUnoTextRangeBase::setPropertyValue(const OUString& PropertyName return; } - _setPropertyValue( PropertyName, aValue, -1 ); + _setPropertyValue( PropertyName, aValue ); } void SAL_CALL SvxUnoTextRangeBase::_setPropertyValue( const OUString& PropertyName, const uno::Any& aValue, sal_Int32 nPara ) @@ -602,7 +602,7 @@ uno::Any SAL_CALL SvxUnoTextRangeBase::getPropertyValue(const OUString& Property return uno::makeAny(aSel); } - return _getPropertyValue( PropertyName, -1 ); + return _getPropertyValue( PropertyName ); } uno::Any SAL_CALL SvxUnoTextRangeBase::_getPropertyValue(const OUString& PropertyName, sal_Int32 nPara ) @@ -767,7 +767,7 @@ void SAL_CALL SvxUnoTextRangeBase::removeVetoableChangeListener( const OUString& // XMultiPropertySet void SAL_CALL SvxUnoTextRangeBase::setPropertyValues( const uno::Sequence< OUString >& aPropertyNames, const uno::Sequence< uno::Any >& aValues ) throw (beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { - _setPropertyValues( aPropertyNames, aValues, -1 ); + _setPropertyValues( aPropertyNames, aValues ); } void SAL_CALL SvxUnoTextRangeBase::_setPropertyValues( const uno::Sequence< OUString >& aPropertyNames, const uno::Sequence< uno::Any >& aValues, sal_Int32 nPara ) throw (beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException) @@ -891,7 +891,7 @@ void SAL_CALL SvxUnoTextRangeBase::_setPropertyValues( const uno::Sequence< OUSt uno::Sequence< uno::Any > SAL_CALL SvxUnoTextRangeBase::getPropertyValues( const uno::Sequence< OUString >& aPropertyNames ) throw (uno::RuntimeException, std::exception) { - return _getPropertyValues( aPropertyNames, -1 ); + return _getPropertyValues( aPropertyNames ); } uno::Sequence< uno::Any > SAL_CALL SvxUnoTextRangeBase::_getPropertyValues( const uno::Sequence< OUString >& aPropertyNames, sal_Int32 nPara ) throw (uno::RuntimeException) @@ -949,7 +949,7 @@ void SAL_CALL SvxUnoTextRangeBase::firePropertiesChangeEvent( const uno::Sequenc beans::PropertyState SAL_CALL SvxUnoTextRangeBase::getPropertyState( const OUString& PropertyName ) throw(beans::UnknownPropertyException, uno::RuntimeException, std::exception) { - return _getPropertyState( PropertyName, -1 ); + return _getPropertyState( PropertyName ); } static const sal_uInt16 aSvxUnoFontDescriptorWhichMap[] = { EE_CHAR_FONTINFO, EE_CHAR_FONTHEIGHT, EE_CHAR_ITALIC, @@ -1059,7 +1059,7 @@ beans::PropertyState SAL_CALL SvxUnoTextRangeBase::_getPropertyState(const OUStr uno::Sequence< beans::PropertyState > SAL_CALL SvxUnoTextRangeBase::getPropertyStates( const uno::Sequence< OUString >& aPropertyName ) throw(beans::UnknownPropertyException, uno::RuntimeException, std::exception) { - return _getPropertyStates( aPropertyName, -1 ); + return _getPropertyStates( aPropertyName ); } uno::Sequence< beans::PropertyState > SvxUnoTextRangeBase::_getPropertyStates(const uno::Sequence< OUString >& PropertyName, sal_Int32 nPara /* = -1 */) @@ -1196,7 +1196,7 @@ bool SvxUnoTextRangeBase::_getOnePropertyStates(const SfxItemSet* pSet, const Sf void SAL_CALL SvxUnoTextRangeBase::setPropertyToDefault( const OUString& PropertyName ) throw(beans::UnknownPropertyException, uno::RuntimeException, std::exception) { - _setPropertyToDefault( PropertyName, -1 ); + _setPropertyToDefault( PropertyName ); } void SvxUnoTextRangeBase::_setPropertyToDefault(const OUString& PropertyName, sal_Int32 nPara /* = -1 */) |