diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-05 09:04:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-05 11:11:41 +0200 |
commit | e3a44cbb1d01a1fe5e6321b29e215f4a13ddee6a (patch) | |
tree | 0db1e26d3d2f227ca2f29764202c05bad6bc63b9 /sw | |
parent | 9ffba2ea6c6880bce955b53ab20b5d99e2709cd3 (diff) |
loplugin:checkunusedparams in toolkit..vbahelper
the extra argument on the runtimeexception method was only ever passed
an "OUString()"
Change-Id: I0ea19ae9328760918f1267f27ba103432fff0b47
Reviewed-on: https://gerrit.libreoffice.org/37274
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/vba/vbaparagraphformat.cxx | 18 | ||||
-rw-r--r-- | sw/source/ui/vba/vbarange.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbarows.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaview.cxx | 6 | ||||
-rw-r--r-- | sw/source/ui/vba/vbawrapformat.cxx | 2 |
5 files changed, 15 insertions, 15 deletions
diff --git a/sw/source/ui/vba/vbaparagraphformat.cxx b/sw/source/ui/vba/vbaparagraphformat.cxx index 0cdb90004c2c..bba5a31bfe96 100644 --- a/sw/source/ui/vba/vbaparagraphformat.cxx +++ b/sw/source/ui/vba/vbaparagraphformat.cxx @@ -87,7 +87,7 @@ void SAL_CALL SwVbaParagraphFormat::setKeepTogether( const uno::Any& _keeptogeth } else { - DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER ); } } @@ -107,7 +107,7 @@ void SAL_CALL SwVbaParagraphFormat::setKeepWithNext( const uno::Any& _keepwithne } else { - DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER ); } } @@ -127,7 +127,7 @@ void SAL_CALL SwVbaParagraphFormat::setHyphenation( const uno::Any& _hyphenation } else { - DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER ); } } @@ -175,7 +175,7 @@ void SAL_CALL SwVbaParagraphFormat::setNoLineNumber( const uno::Any& _nolinenumb } else { - DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER ); } } @@ -234,7 +234,7 @@ void SAL_CALL SwVbaParagraphFormat::setPageBreakBefore( const uno::Any& _breakbe } else { - DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER ); } } @@ -325,7 +325,7 @@ void SAL_CALL SwVbaParagraphFormat::setWidowControl( const uno::Any& _widowcontr } else { - DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER ); } } @@ -403,7 +403,7 @@ style::LineSpacing SwVbaParagraphFormat::getOOoLineSpacingFromRule( sal_Int32 _l } default: { - DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER ); break; } } @@ -468,7 +468,7 @@ sal_Int32 SwVbaParagraphFormat::getMSWordLineSpacingRule( style::LineSpacing& rL } default: { - DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER ); } } return wdLineSpacing; @@ -508,7 +508,7 @@ style::ParagraphAdjust SwVbaParagraphFormat::getOOoAlignment( sal_Int32 _alignme } default: { - DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::runtimeexception( ERRCODE_BASIC_BAD_PARAMETER ); } } return nParaAjust; diff --git a/sw/source/ui/vba/vbarange.cxx b/sw/source/ui/vba/vbarange.cxx index 65bf25b63ed5..7df607fbf52b 100644 --- a/sw/source/ui/vba/vbarange.cxx +++ b/sw/source/ui/vba/vbarange.cxx @@ -270,7 +270,7 @@ void SwVbaRange::GetStyleInfo(OUString& aStyleName, OUString& aStyleType ) } if( aStyleType.isEmpty() ) { - DebugHelper::runtimeexception( ERRCODE_BASIC_INTERNAL_ERROR, OUString() ); + DebugHelper::runtimeexception( ERRCODE_BASIC_INTERNAL_ERROR ); } } diff --git a/sw/source/ui/vba/vbarows.cxx b/sw/source/ui/vba/vbarows.cxx index 9807c5e78c7d..f229ded6a11e 100644 --- a/sw/source/ui/vba/vbarows.cxx +++ b/sw/source/ui/vba/vbarows.cxx @@ -223,7 +223,7 @@ void SAL_CALL SwVbaRows::SetLeftIndent( float LeftIndent, ::sal_Int32 RulerStyle } default: { - DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_ARGUMENT, OUString()); + DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_ARGUMENT); } } } diff --git a/sw/source/ui/vba/vbaview.cxx b/sw/source/ui/vba/vbaview.cxx index cbf1e7b95587..49e5076c89f3 100644 --- a/sw/source/ui/vba/vbaview.cxx +++ b/sw/source/ui/vba/vbaview.cxx @@ -149,7 +149,7 @@ SwVbaView::setSeekView( ::sal_Int32 _seekview ) } else { - DebugHelper::runtimeexception( ERRCODE_BASIC_NO_ACTIVE_OBJECT, OUString() ); + DebugHelper::runtimeexception( ERRCODE_BASIC_NO_ACTIVE_OBJECT ); } break; } @@ -164,7 +164,7 @@ SwVbaView::setSeekView( ::sal_Int32 _seekview ) } else { - DebugHelper::runtimeexception( ERRCODE_BASIC_NO_ACTIVE_OBJECT, OUString() ); + DebugHelper::runtimeexception( ERRCODE_BASIC_NO_ACTIVE_OBJECT ); } break; } @@ -236,7 +236,7 @@ SwVbaView::setType( ::sal_Int32 _type ) break; } default: - DebugHelper::runtimeexception( ERRCODE_BASIC_NOT_IMPLEMENTED, OUString() ); + DebugHelper::runtimeexception( ERRCODE_BASIC_NOT_IMPLEMENTED ); } } diff --git a/sw/source/ui/vba/vbawrapformat.cxx b/sw/source/ui/vba/vbawrapformat.cxx index e12cebe0c66c..0d161b2ab4b2 100644 --- a/sw/source/ui/vba/vbawrapformat.cxx +++ b/sw/source/ui/vba/vbawrapformat.cxx @@ -79,7 +79,7 @@ void SwVbaWrapFormat::makeWrap() } default: { - DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_ARGUMENT, OUString()); + DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_ARGUMENT); } } } |