summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/queryfilter.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-10-04 15:05:38 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-12 10:48:13 +0000
commit3c99f8500f657ed84b316390d5175a6f5e56bc69 (patch)
tree749f16652560a50d409b12a23bf1a5d93b3cd2d5 /dbaccess/source/ui/dlg/queryfilter.cxx
parentbbadb38539eb233ac45b267034066a7274181c65 (diff)
convert Link<> to typed
Change-Id: Iec15042138e0715459b2c9e872a7464d75a6b1eb Reviewed-on: https://gerrit.libreoffice.org/19305 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dbaccess/source/ui/dlg/queryfilter.cxx')
-rw-r--r--dbaccess/source/ui/dlg/queryfilter.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/dbaccess/source/ui/dlg/queryfilter.cxx b/dbaccess/source/ui/dlg/queryfilter.cxx
index 764ce8ff2042..46cab6256d30 100644
--- a/dbaccess/source/ui/dlg/queryfilter.cxx
+++ b/dbaccess/source/ui/dlg/queryfilter.cxx
@@ -551,7 +551,7 @@ void DlgFilterCrit::SetLine( sal_uInt16 nIdx,const PropertyValue& _rItem,bool _b
sName = _rItem.Name;
// select the appropriate field name
SelectField( *pColumnListControl, sName );
- ListSelectHdl( pColumnListControl );
+ ListSelectHdl( *pColumnListControl );
// select the appropriate condition
pPredicateListControl->SelectEntryPos( GetSelectionPos( (sal_Int32)_rItem.Handle, *pPredicateListControl ) );
@@ -681,16 +681,16 @@ void DlgFilterCrit::EnableLines()
m_pET_WHEREVALUE3->Disable();
}
-IMPL_LINK( DlgFilterCrit, ListSelectHdl, ListBox *, pListBox )
+IMPL_LINK_TYPED( DlgFilterCrit, ListSelectHdl, ListBox&, rListBox, void )
{
OUString aName;
ListBox* pComp;
- if(pListBox == m_pLB_WHEREFIELD1)
+ if(&rListBox == m_pLB_WHEREFIELD1)
{
aName = LbText(*m_pLB_WHEREFIELD1);
pComp = m_pLB_WHERECOMP1;
}
- else if(pListBox == m_pLB_WHEREFIELD2)
+ else if(&rListBox == m_pLB_WHEREFIELD2)
{
aName = LbText(*m_pLB_WHEREFIELD2);
pComp = m_pLB_WHERECOMP2;
@@ -736,13 +736,11 @@ IMPL_LINK( DlgFilterCrit, ListSelectHdl, ListBox *, pListBox )
pComp->SelectEntryPos(0);
EnableLines();
- return 0;
}
-IMPL_LINK( DlgFilterCrit, ListSelectCompHdl, ListBox *, /*pListBox*/ )
+IMPL_LINK_NOARG_TYPED( DlgFilterCrit, ListSelectCompHdl, ListBox&, void )
{
EnableLines();
- return 0;
}
void DlgFilterCrit::BuildWherePart()