summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-09-22 16:18:58 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-22 18:57:16 +0000
commitefeb9281535f9e32a1d23332a19da69767dd1387 (patch)
tree8a78e678e2b640ac9d7fe366eae1f09d16ff4767 /dbaccess
parent0554e83ca9968e2301934bb2f420c9b9faee5681 (diff)
convert Link<> to typed
Change-Id: I12b3fdb443226a63786b94ce9836e9d2efa6a5c8 Reviewed-on: https://gerrit.libreoffice.org/18776 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/browser/brwctrlr.cxx14
-rw-r--r--dbaccess/source/ui/inc/brwctrlr.hxx2
2 files changed, 8 insertions, 8 deletions
diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx
index 9d1f159bf2b0..8783d3114b32 100644
--- a/dbaccess/source/ui/browser/brwctrlr.cxx
+++ b/dbaccess/source/ui/browser/brwctrlr.cxx
@@ -2323,7 +2323,7 @@ Reference< XPropertySet > SbaXDataBrowserController::getBoundField(sal_uInt16 n
return xEmptyReturn;
}
-IMPL_LINK(SbaXDataBrowserController, OnSearchContextRequest, FmSearchContext*, pContext)
+IMPL_LINK_TYPED(SbaXDataBrowserController, OnSearchContextRequest, FmSearchContext&, rContext, sal_uInt32)
{
Reference< css::container::XIndexAccess > xPeerContainer(getBrowserView()->getGridControl(), UNO_QUERY);
@@ -2350,23 +2350,23 @@ IMPL_LINK(SbaXDataBrowserController, OnSearchContextRequest, FmSearchContext*, p
sFieldList += aName + ";";
- pContext->arrFields.push_back(xCurrentColumn);
+ rContext.arrFields.push_back(xCurrentColumn);
}
sFieldList = comphelper::string::stripEnd(sFieldList, ';');
- pContext->xCursor.set(getRowSet(),UNO_QUERY);
- pContext->strUsedFields = sFieldList;
+ rContext.xCursor.set(getRowSet(),UNO_QUERY);
+ rContext.strUsedFields = sFieldList;
// if the cursor is in a mode other than STANDARD -> reset
- Reference< XPropertySet > xCursorSet(pContext->xCursor, UNO_QUERY);
+ Reference< XPropertySet > xCursorSet(rContext.xCursor, UNO_QUERY);
OSL_ENSURE(xCursorSet.is() && !::comphelper::getBOOL(xCursorSet->getPropertyValue(PROPERTY_ISMODIFIED)),
"SbaXDataBrowserController::OnSearchContextRequest : please do not call for cursors with modified rows !");
if (xCursorSet.is() && ::comphelper::getBOOL(xCursorSet->getPropertyValue(PROPERTY_ISNEW)))
{
- Reference< XResultSetUpdate > xUpdateCursor(pContext->xCursor, UNO_QUERY);
+ Reference< XResultSetUpdate > xUpdateCursor(rContext.xCursor, UNO_QUERY);
xUpdateCursor->moveToCurrentRow();
}
- return pContext->arrFields.size();
+ return rContext.arrFields.size();
}
IMPL_LINK(SbaXDataBrowserController, OnFoundData, FmFoundRecordInformation*, pInfo)
diff --git a/dbaccess/source/ui/inc/brwctrlr.hxx b/dbaccess/source/ui/inc/brwctrlr.hxx
index b18b26758f26..8bcab45a054a 100644
--- a/dbaccess/source/ui/inc/brwctrlr.hxx
+++ b/dbaccess/source/ui/inc/brwctrlr.hxx
@@ -331,7 +331,7 @@ namespace dbaui
DECL_LINK_TYPED( OnClipboardChanged, TransferableDataHelper*, void );
// search callbacks
- DECL_LINK(OnSearchContextRequest, FmSearchContext*);
+ DECL_LINK_TYPED(OnSearchContextRequest, FmSearchContext&, sal_uInt32);
DECL_LINK(OnFoundData, FmFoundRecordInformation*);
DECL_LINK(OnCanceledNotFound, FmFoundRecordInformation*);