diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-07-02 22:32:35 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-07-02 22:32:35 +0200 |
commit | 2a468fff56deeefb8d77d971e2f21c90e435568a (patch) | |
tree | 121e3323df964aa73ae65080c97950032e09a738 /editeng | |
parent | badc759a8a97965bbc77aea6fb417c94a3e088a1 (diff) |
loplugin:casttovoid: editeng
Change-Id: If389b63fce54a5504d3e25804148038e7c4d4ca9
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/accessibility/AccessibleEditableTextPara.cxx | 23 | ||||
-rw-r--r-- | editeng/source/accessibility/AccessibleImageBullet.cxx | 4 | ||||
-rw-r--r-- | editeng/source/editeng/editeng.cxx | 3 | ||||
-rw-r--r-- | editeng/source/editeng/edtspell.cxx | 1 | ||||
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 2 | ||||
-rw-r--r-- | editeng/source/xml/xmltxtexp.cxx | 7 |
6 files changed, 6 insertions, 34 deletions
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx index 78c79ccb2a55..c923d83adbe7 100644 --- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx +++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx @@ -2107,12 +2107,7 @@ namespace accessibility try { SvxEditViewForwarder& rCacheVF = GetEditViewForwarder( true ); - #if OSL_DEBUG_LEVEL > 0 - SvxAccessibleTextAdapter& rCacheTF = GetTextForwarder(); // MUST be after GetEditViewForwarder(), see method docs - (void)rCacheTF; - #else GetTextForwarder(); // MUST be after GetEditViewForwarder(), see method docs - #endif bool aRetVal; @@ -2413,14 +2408,7 @@ namespace accessibility { SolarMutexGuard aGuard; - #if OSL_DEBUG_LEVEL > 0 - SvxAccessibleTextAdapter& rCacheTF = - #endif - GetTextForwarder(); - - #if OSL_DEBUG_LEVEL > 0 - (void)rCacheTF; - #endif + GetTextForwarder(); DBG_ASSERT(GetParagraphIndex() >= 0 && GetParagraphIndex() <= USHRT_MAX, "AccessibleEditableTextPara::getCharacterAttributes: index value overflow"); @@ -2510,14 +2498,7 @@ namespace accessibility SolarMutexGuard aGuard; - #if OSL_DEBUG_LEVEL > 0 - SvxAccessibleTextAdapter& rCacheTF = - #endif - GetTextForwarder(); - - #if OSL_DEBUG_LEVEL > 0 - (void)rCacheTF; - #endif + GetTextForwarder(); DBG_ASSERT(GetParagraphIndex() >= 0 && GetParagraphIndex() <= USHRT_MAX, "AccessibleEditableTextPara::getCharacterAttributes: index value overflow"); diff --git a/editeng/source/accessibility/AccessibleImageBullet.cxx b/editeng/source/accessibility/AccessibleImageBullet.cxx index 586d931a69c5..2a6c50de1eaf 100644 --- a/editeng/source/accessibility/AccessibleImageBullet.cxx +++ b/editeng/source/accessibility/AccessibleImageBullet.cxx @@ -105,10 +105,8 @@ namespace accessibility return 0; } - uno::Reference< XAccessible > SAL_CALL AccessibleImageBullet::getAccessibleChild( sal_Int32 i ) + uno::Reference< XAccessible > SAL_CALL AccessibleImageBullet::getAccessibleChild( sal_Int32 ) { - (void)i; - throw lang::IndexOutOfBoundsException("No children available", uno::Reference< uno::XInterface > ( static_cast< ::cppu::OWeakObject* > (this) ) ); // static_cast: disambiguate hierarchy diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx index 6328ad6d0ae8..4c012022cbff 100644 --- a/editeng/source/editeng/editeng.cxx +++ b/editeng/source/editeng/editeng.cxx @@ -1976,11 +1976,10 @@ Point EditEngine::GetDocPosTopLeft( sal_Int32 nParagraph ) return aPoint; } -const SvxNumberFormat* EditEngine::GetNumberFormat( sal_Int32 nPara ) const +const SvxNumberFormat* EditEngine::GetNumberFormat( sal_Int32 ) const { // derived objects may override this function to give access to // bullet information (see Outliner) - (void) nPara; return nullptr; } diff --git a/editeng/source/editeng/edtspell.cxx b/editeng/source/editeng/edtspell.cxx index 906091181a11..c2810f49ed07 100644 --- a/editeng/source/editeng/edtspell.cxx +++ b/editeng/source/editeng/edtspell.cxx @@ -255,7 +255,6 @@ void WrongList::TextInserted( size_t nPos, size_t nLength, bool bPosIsSep ) } SAL_WARN_IF(bRefIsValid && rWrong.mnStart >= rWrong.mnEnd, "editeng", "TextInserted, editeng::MisspellRange: Start >= End?!"); - (void)bRefIsValid; } SAL_WARN_IF(DbgIsBuggy(), "editeng", "InsertWrong: WrongList broken!"); diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 5ad6d694cf22..0ce4ef391aba 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -949,7 +949,6 @@ bool ImpEditEngine::CreateLines( sal_Int32 nPara, sal_uInt32 nStartPosY ) DBG_ASSERT( pPortion->GetKind() != PortionKind::HYPHENATOR, "CreateLines: Hyphenator-Portion!" ); DBG_ASSERT( nPortionLen || bProcessingEmptyLine, "Empty Portion in CreateLines ?!" ); - (void)bProcessingEmptyLine; if ( pNextFeature && ( pNextFeature->GetStart() == nTmpPos ) ) { SAL_WARN_IF( bContinueLastPortion, @@ -1097,7 +1096,6 @@ bool ImpEditEngine::CreateLines( sal_Int32 nPara, sal_uInt32 nStartPosY ) else { DBG_ASSERT( nPortionLen || bProcessingEmptyLine, "Empty Portion - Extra Space?!" ); - (void)bProcessingEmptyLine; SeekCursor( pNode, nTmpPos+1, aTmpFont ); aTmpFont.SetPhysFont( GetRefDevice() ); ImplInitDigitMode(GetRefDevice(), aTmpFont.GetLanguage()); diff --git a/editeng/source/xml/xmltxtexp.cxx b/editeng/source/xml/xmltxtexp.cxx index c78bf1d0d862..42f01b7514da 100644 --- a/editeng/source/xml/xmltxtexp.cxx +++ b/editeng/source/xml/xmltxtexp.cxx @@ -197,9 +197,8 @@ Sequence< OUString > SAL_CALL SvxSimpleUnoModel::getAvailableServiceNames( ) } // XAnyCompareFactory -uno::Reference< css::ucb::XAnyCompare > SAL_CALL SvxSimpleUnoModel::createAnyCompareByName( const OUString& PropertyName ) +uno::Reference< css::ucb::XAnyCompare > SAL_CALL SvxSimpleUnoModel::createAnyCompareByName( const OUString& ) { - (void)PropertyName; return SvxCreateNumRuleCompare(); } @@ -211,10 +210,8 @@ uno::Reference< container::XNameAccess > SAL_CALL SvxSimpleUnoModel::getStyleFam } // XModel -sal_Bool SAL_CALL SvxSimpleUnoModel::attachResource( const OUString& aURL, const css::uno::Sequence< css::beans::PropertyValue >& aArgs ) +sal_Bool SAL_CALL SvxSimpleUnoModel::attachResource( const OUString&, const css::uno::Sequence< css::beans::PropertyValue >& ) { - (void)aURL; - (void)aArgs; return false; } |