diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-07 16:18:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-09 11:01:06 +0200 |
commit | 14505bb67eb671ebcb91c81cbefbbc1aab930b44 (patch) | |
tree | 0ad2166f5c6c95d01f2f7204b13aaa0ca8119acc /sfx2 | |
parent | 6ea42ddf8f06b7551e80a906908dbad0766a68c6 (diff) |
loplugin:staticmethods
Change-Id: I715374b531da2850434b2436633b6042ecb9ebe0
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/versdlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/versdlg.cxx b/sfx2/source/dialog/versdlg.cxx index ec29b3dcce23..403f581efd34 100644 --- a/sfx2/source/dialog/versdlg.cxx +++ b/sfx2/source/dialog/versdlg.cxx @@ -338,7 +338,7 @@ void SfxVersionDialog::Open_Impl() SfxObjectShell *pObjShell = pViewFrame->GetObjectShell(); SvTreeListEntry *pEntry = m_pVersionBox->FirstSelected(); - sal_uIntPtr nPos = m_pVersionBox->GetModel()->GetRelPos( pEntry ); + sal_uIntPtr nPos = SvTreeList::GetRelPos( pEntry ); SfxInt16Item aItem( SID_VERSION, (short)nPos+1 ); SfxStringItem aTarget( SID_TARGETNAME, "_blank" ); SfxStringItem aReferer( SID_REFERER, "private:user" ); @@ -432,7 +432,7 @@ IMPL_LINK( SfxVersionDialog, ButtonHdl_Impl, Button*, pButton ) else if (pEntry && pButton == m_pCompareButton) { SfxAllItemSet aSet( pObjShell->GetPool() ); - sal_uIntPtr nPos = m_pVersionBox->GetModel()->GetRelPos( pEntry ); + sal_uIntPtr nPos = SvTreeList::GetRelPos( pEntry ); aSet.Put( SfxInt16Item( SID_VERSION, (short)nPos+1 ) ); aSet.Put( SfxStringItem( SID_FILE_NAME, pObjShell->GetMedium()->GetName() ) ); |