summaryrefslogtreecommitdiff
path: root/svx/source/form
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-04 11:17:25 +0200
committerNoel Grandin <noel@peralex.com>2015-03-19 10:45:01 +0200
commitc97ccd3b3635a53e6bdc07b83c9bf8666b66000a (patch)
treed52bb0c6d93c0913375fdbd8eb6d36bbae3abbfe /svx/source/form
parent2ebd79b3d214c62c0997606115ebc50700d6a760 (diff)
loplugin:constantfunction: svx
Change-Id: Ib8c3599d245fbc371d00f28d812138b26c3f706d
Diffstat (limited to 'svx/source/form')
-rw-r--r--svx/source/form/datanavi.cxx17
1 files changed, 1 insertions, 16 deletions
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index 1b2f7738e66d..74f7c37d9d2c 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -2150,24 +2150,10 @@ namespace svxform
}
- void DataNavigator::Update( FmFormShell* /*pFormShell*/ )
+ void DataNavigator::StateChanged( sal_uInt16 , SfxItemState , const SfxPoolItem* )
{
}
- void DataNavigator::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState )
- {
- if ( !pState || SID_FM_DATANAVIGATOR_CONTROL != nSID )
- return;
-
- if ( eState >= SfxItemState::DEFAULT )
- {
- FmFormShell* pShell = PTR_CAST( FmFormShell, static_cast<const SfxObjectItem*>(pState)->GetShell() );
- Update( pShell );
- }
- else
- Update( NULL );
- }
-
void DataNavigator::GetFocus()
{
@@ -2177,7 +2163,6 @@ namespace svxform
bool DataNavigator::Close()
{
- Update( NULL );
return SfxDockingWindow::Close();
}