summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-05 09:04:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-05 11:11:41 +0200
commite3a44cbb1d01a1fe5e6321b29e215f4a13ddee6a (patch)
tree0db1e26d3d2f227ca2f29764202c05bad6bc63b9 /sc
parent9ffba2ea6c6880bce955b53ab20b5d99e2709cd3 (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 'sc')
-rw-r--r--sc/source/ui/vba/vbaapplication.cxx2
-rw-r--r--sc/source/ui/vba/vbaaxes.cxx4
-rw-r--r--sc/source/ui/vba/vbapagebreak.cxx2
-rw-r--r--sc/source/ui/vba/vbapagebreaks.cxx2
-rw-r--r--sc/source/ui/vba/vbapagesetup.cxx8
-rw-r--r--sc/source/ui/vba/vbawindow.cxx2
-rw-r--r--sc/source/ui/vba/vbaworksheet.cxx2
7 files changed, 11 insertions, 11 deletions
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx
index e4b17f1016cd..5c500d62f137 100644
--- a/sc/source/ui/vba/vbaapplication.cxx
+++ b/sc/source/ui/vba/vbaapplication.cxx
@@ -878,7 +878,7 @@ OUString ScVbaApplication::getOfficePath( const OUString& _sPathType )
}
catch (const uno::Exception&)
{
- DebugHelper::runtimeexception(ERRCODE_BASIC_METHOD_FAILED, OUString());
+ DebugHelper::runtimeexception(ERRCODE_BASIC_METHOD_FAILED);
}
return sRetPath;
}
diff --git a/sc/source/ui/vba/vbaaxes.cxx b/sc/source/ui/vba/vbaaxes.cxx
index 517a5d707389..fc795d64b720 100644
--- a/sc/source/ui/vba/vbaaxes.cxx
+++ b/sc/source/ui/vba/vbaaxes.cxx
@@ -72,11 +72,11 @@ ScVbaAxes::createAxis( const uno::Reference< excel::XChart >& xChart, const uno:
if (((nType == xlCategory) || (nType == xlSeriesAxis) || (nType == xlValue)))
{
if ((nAxisGroup != xlPrimary) && (nAxisGroup != xlSecondary))
- DebugHelper::runtimeexception(ERRCODE_BASIC_METHOD_FAILED, OUString());
+ DebugHelper::runtimeexception(ERRCODE_BASIC_METHOD_FAILED);
xAxisPropertySet.set( pChart->getAxisPropertySet(nType, nAxisGroup), uno::UNO_QUERY_THROW );
}
else
- DebugHelper::runtimeexception(ERRCODE_BASIC_METHOD_FAILED, OUString());
+ DebugHelper::runtimeexception(ERRCODE_BASIC_METHOD_FAILED);
uno::Reference< XHelperInterface > xParent( xChart, uno::UNO_QUERY_THROW );
return new ScVbaAxis( xParent, xContext, xAxisPropertySet, nType, nAxisGroup);
}
diff --git a/sc/source/ui/vba/vbapagebreak.cxx b/sc/source/ui/vba/vbapagebreak.cxx
index 53a63c01e29a..f95bdfac7bd8 100644
--- a/sc/source/ui/vba/vbapagebreak.cxx
+++ b/sc/source/ui/vba/vbapagebreak.cxx
@@ -57,7 +57,7 @@ void ScVbaPageBreak< Ifc... >::setType(sal_Int32 type)
(type != excel::XlPageBreak::xlPageBreakManual) &&
(type != excel::XlPageBreak::xlPageBreakAutomatic) )
{
- DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() );
+ DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER);
}
if( type == excel::XlPageBreak::xlPageBreakNone )
diff --git a/sc/source/ui/vba/vbapagebreaks.cxx b/sc/source/ui/vba/vbapagebreaks.cxx
index b5d964a7a206..cf4c38245abf 100644
--- a/sc/source/ui/vba/vbapagebreaks.cxx
+++ b/sc/source/ui/vba/vbapagebreaks.cxx
@@ -157,7 +157,7 @@ sheet::TablePageBreakData RangePageBreaks::getTablePageBreakData( sal_Int32 nAPI
aTablePageBreakData = aTablePageBreakDataList[i];
sal_Int32 nPos = aTablePageBreakData.Position;
if( nPos > nUsedEnd + 1 )
- DebugHelper::runtimeexception(ERRCODE_BASIC_METHOD_FAILED, OUString());
+ DebugHelper::runtimeexception(ERRCODE_BASIC_METHOD_FAILED);
index++;
if( index == nAPIItemIndex )
return aTablePageBreakData;
diff --git a/sc/source/ui/vba/vbapagesetup.cxx b/sc/source/ui/vba/vbapagesetup.cxx
index 64179f85f658..42ceae95a22c 100644
--- a/sc/source/ui/vba/vbapagesetup.cxx
+++ b/sc/source/ui/vba/vbapagesetup.cxx
@@ -198,7 +198,7 @@ void SAL_CALL ScVbaPageSetup::setZoom( const uno::Any& zoom)
zoom >>= aValue;
if( aValue )
{
- DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() );
+ DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER);
}
}
else
@@ -206,7 +206,7 @@ void SAL_CALL ScVbaPageSetup::setZoom( const uno::Any& zoom)
zoom >>= pageScale;
if(( pageScale < ZOOM_IN )||( pageScale > ZOOM_MAX ))
{
- DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() );
+ DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER);
}
}
@@ -220,7 +220,7 @@ void SAL_CALL ScVbaPageSetup::setZoom( const uno::Any& zoom)
{
if( pageScale == 0 )
{
- DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() );
+ DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER);
}
}
catch (const uno::Exception&)
@@ -476,7 +476,7 @@ void SAL_CALL ScVbaPageSetup::setOrder(sal_Int32 order)
bOrder = false;
break;
default:
- DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() );
+ DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER);
}
try
diff --git a/sc/source/ui/vba/vbawindow.cxx b/sc/source/ui/vba/vbawindow.cxx
index fae68abba1b3..f0a7b7f4692a 100644
--- a/sc/source/ui/vba/vbawindow.cxx
+++ b/sc/source/ui/vba/vbawindow.cxx
@@ -808,7 +808,7 @@ ScVbaWindow::setView( const uno::Any& _view)
nSlot = FID_PAGEBREAKMODE;
break;
default:
- DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() );
+ DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER);
}
// !! TODO !! get view shell from controller
ScTabViewShell* pViewShell = excel::getBestViewShell( m_xModel );
diff --git a/sc/source/ui/vba/vbaworksheet.cxx b/sc/source/ui/vba/vbaworksheet.cxx
index 6f5baf5ff3d6..3c7e8a3c2c76 100644
--- a/sc/source/ui/vba/vbaworksheet.cxx
+++ b/sc/source/ui/vba/vbaworksheet.cxx
@@ -372,7 +372,7 @@ ScVbaWorksheet::setEnableSelection( sal_Int32 nSelection )
(nSelection != excel::XlEnableSelection::xlUnlockedCells) &&
(nSelection != excel::XlEnableSelection::xlNoSelection) )
{
- DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() );
+ DebugHelper::runtimeexception(ERRCODE_BASIC_BAD_PARAMETER);
}
uno::Reference <sheet::XSpreadsheetDocument> xSpreadDoc( getModel(), uno::UNO_QUERY_THROW );