summaryrefslogtreecommitdiffstats
path: root/svx/source/form/fmtextcontrolshell.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-01 08:40:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-01 11:06:26 +0200
commit612b489d3e05b24c1b6690082e8518bac033e9d2 (patch)
tree23a6c556989071385d1c64730ed72bdbae7c239c /svx/source/form/fmtextcontrolshell.cxx
parentwriterprefect: run astyle (diff)
downloadcore-612b489d3e05b24c1b6690082e8518bac033e9d2.tar.gz
core-612b489d3e05b24c1b6690082e8518bac033e9d2.zip
loplugin:checkunusedparams
the "check for taking address of function" part was generating false+ Change-Id: Iad6203850901229b7b1b2f8938c68ec703cd343f Reviewed-on: https://gerrit.libreoffice.org/40613 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/form/fmtextcontrolshell.cxx')
-rw-r--r--svx/source/form/fmtextcontrolshell.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/form/fmtextcontrolshell.cxx b/svx/source/form/fmtextcontrolshell.cxx
index 4eded5beda73..e32cc0112dd8 100644
--- a/svx/source/form/fmtextcontrolshell.cxx
+++ b/svx/source/form/fmtextcontrolshell.cxx
@@ -406,7 +406,7 @@ namespace svx
}
- OUString lcl_getUnoSlotName( SfxApplication&, SfxSlotId _nSlotId )
+ OUString lcl_getUnoSlotName( SfxSlotId _nSlotId )
{
OUString sSlotUnoName;
@@ -565,7 +565,7 @@ namespace svx
#if OSL_DEBUG_LEVEL > 0
OUString sUnoSlotName;
if ( SfxGetpApp() )
- sUnoSlotName = lcl_getUnoSlotName( *SfxGetpApp(), nSlotId );
+ sUnoSlotName = lcl_getUnoSlotName( nSlotId );
else
sUnoSlotName = "<unknown>";
OString sUnoSlotNameAscii( "\"" );
@@ -711,7 +711,7 @@ namespace svx
#if OSL_DEBUG_LEVEL > 0
else
{
- OUString sUnoSlotName = lcl_getUnoSlotName( *SfxGetpApp(), nSlotForItemSet );
+ OUString sUnoSlotName = lcl_getUnoSlotName( nSlotForItemSet );
if ( sUnoSlotName.isEmpty() )
sUnoSlotName = "unknown (no SfxSlot)";
SAL_WARN( "svx", "FmTextControShell::executeAttributeDialog: Could not handle the following item:"
@@ -1259,7 +1259,7 @@ namespace svx
{
OSL_PRECOND( _rxProvider.is() && _pApplication, "FmTextControlShell::implGetFeatureDispatcher: invalid arg(s)!" );
URL aFeatureURL;
- aFeatureURL.Complete = lcl_getUnoSlotName( *_pApplication, _nSlot );
+ aFeatureURL.Complete = lcl_getUnoSlotName( _nSlot );
try
{
if ( !m_xURLTransformer.is() )