summaryrefslogtreecommitdiff
path: root/ucb
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 /ucb
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 'ucb')
-rw-r--r--ucb/source/sorter/sortdynres.cxx6
-rw-r--r--ucb/source/sorter/sortdynres.hxx2
-rw-r--r--ucb/source/ucp/file/bc.cxx5
-rw-r--r--ucb/source/ucp/file/bc.hxx3
-rw-r--r--ucb/source/ucp/ftp/ftpdirp.cxx2
-rw-r--r--ucb/source/ucp/ftp/ftpdirp.hxx2
6 files changed, 9 insertions, 11 deletions
diff --git a/ucb/source/sorter/sortdynres.cxx b/ucb/source/sorter/sortdynres.cxx
index ffe6bd185e8c..caa5f97afc72 100644
--- a/ucb/source/sorter/sortdynres.cxx
+++ b/ucb/source/sorter/sortdynres.cxx
@@ -379,7 +379,7 @@ void SortedDynamicResultSet::impl_notify( const ListEvent& Changes )
// XEventListener
-void SortedDynamicResultSet::impl_disposing( const EventObject& )
+void SortedDynamicResultSet::impl_disposing()
{
mxListener.clear();
mxOriginal.clear();
@@ -527,12 +527,12 @@ SortedDynamicResultSetListener::~SortedDynamicResultSetListener()
// XEventListener ( base of XDynamicResultSetListener )
void SAL_CALL
-SortedDynamicResultSetListener::disposing( const EventObject& Source )
+SortedDynamicResultSetListener::disposing( const EventObject& /*Source*/ )
{
osl::Guard< osl::Mutex > aGuard( maMutex );
if ( mpOwner )
- mpOwner->impl_disposing( Source );
+ mpOwner->impl_disposing();
}
diff --git a/ucb/source/sorter/sortdynres.hxx b/ucb/source/sorter/sortdynres.hxx
index 8e24cb70635c..46d3a9c6b2c3 100644
--- a/ucb/source/sorter/sortdynres.hxx
+++ b/ucb/source/sorter/sortdynres.hxx
@@ -109,7 +109,7 @@ public:
// own methods:
/// @throws css::uno::RuntimeException
- void impl_disposing( const css::lang::EventObject& Source );
+ void impl_disposing();
/// @throws css::uno::RuntimeException
void impl_notify( const css::ucb::ListEvent& Changes );
diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx
index 9f0c6635de94..197402d160c5 100644
--- a/ucb/source/ucp/file/bc.cxx
+++ b/ucb/source/ucp/file/bc.cxx
@@ -311,7 +311,7 @@ BaseContent::execute( const Command& aCommand,
if (aCommand.Name == "getPropertySetInfo") // No exceptions
{
- aAny <<= getPropertySetInfo( CommandId );
+ aAny <<= getPropertySetInfo();
}
else if (aCommand.Name == "getCommandInfo") // no exceptions
{
@@ -713,8 +713,7 @@ BaseContent::getCommandInfo()
Reference< beans::XPropertySetInfo > SAL_CALL
-BaseContent::getPropertySetInfo(
- sal_Int32 )
+BaseContent::getPropertySetInfo()
{
if( m_nState & Deleted )
return Reference< beans::XPropertySetInfo >();
diff --git a/ucb/source/ucp/file/bc.hxx b/ucb/source/ucp/file/bc.hxx
index e6d82ad6f393..6953ce4ddb87 100644
--- a/ucb/source/ucp/file/bc.hxx
+++ b/ucb/source/ucp/file/bc.hxx
@@ -245,8 +245,7 @@ namespace fileaccess {
/// @throws css::uno::RuntimeException
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
- getPropertySetInfo(
- sal_Int32 nMyCommandIdentifier );
+ getPropertySetInfo();
/// @throws css::uno::RuntimeException
css::uno::Reference< css::sdbc::XRow > SAL_CALL
diff --git a/ucb/source/ucp/ftp/ftpdirp.cxx b/ucb/source/ucp/ftp/ftpdirp.cxx
index 915f1921443b..98cd4dbccf76 100644
--- a/ucb/source/ucp/ftp/ftpdirp.cxx
+++ b/ucb/source/ucp/ftp/ftpdirp.cxx
@@ -1169,7 +1169,7 @@ bool FTPDirectoryParser::parseUNIX_isYearTimeField (
return false;
rDateTime.SetYear(nNumber);
- rDateTime.SetTime(0);
+ rDateTime.SetTime();
return true;
}
diff --git a/ucb/source/ucp/ftp/ftpdirp.hxx b/ucb/source/ucp/ftp/ftpdirp.hxx
index 6527569e110a..238b761455b6 100644
--- a/ucb/source/ucp/ftp/ftpdirp.hxx
+++ b/ucb/source/ucp/ftp/ftpdirp.hxx
@@ -47,7 +47,7 @@ namespace ftp {
void SetMonth(sal_uInt16 month) { Month = month; }
void SetDay(sal_uInt16 day) { Day = day; }
// Only zero allowed and used for time-argument
- void SetTime(sal_uInt16) { Hours = 0; Minutes = 0; Seconds = 0; NanoSeconds = 0; }
+ void SetTime() { Hours = 0; Minutes = 0; Seconds = 0; NanoSeconds = 0; }
void SetHour(sal_uInt16 hours) { Hours = hours; }
void SetMin(sal_uInt16 minutes) { Minutes = minutes; }
void SetSec(sal_uInt16 seconds) { Seconds = seconds; }