summaryrefslogtreecommitdiff
path: root/forms/source/component/ComboBox.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 15:32:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 18:29:34 +0200
commit6595240f39c34fa9ae5cd1bb319f6287206e4b92 (patch)
tree64f7bde04c093e1cf8ee2f20081a60826881fe7f /forms/source/component/ComboBox.cxx
parentc3741a89a99fcd58824d5137054b96b01bc32a11 (diff)
loplugin:referencecasting in forms..fpicker
Change-Id: I0aa040b6d3264d2efde5797f79994d3d65ceaddf Reviewed-on: https://gerrit.libreoffice.org/75957 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms/source/component/ComboBox.cxx')
-rw-r--r--forms/source/component/ComboBox.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/forms/source/component/ComboBox.cxx b/forms/source/component/ComboBox.cxx
index 06f5f4234c0d..03d46288a6bf 100644
--- a/forms/source/component/ComboBox.cxx
+++ b/forms/source/component/ComboBox.cxx
@@ -474,10 +474,9 @@ void OComboBoxModel::loadData( bool _bForce )
return;
// Get Connection
- Reference<XRowSet> xForm(m_xCursor, UNO_QUERY);
- if (!xForm.is())
+ if (!m_xCursor.is())
return;
- Reference<XConnection> xConnection = getConnection(xForm);
+ Reference<XConnection> xConnection = getConnection(m_xCursor);
if (!xConnection.is())
return;
@@ -518,7 +517,7 @@ void OComboBoxModel::loadData( bool _bForce )
else
{
// otherwise look for the alias
- Reference<XPropertySet> xFormProp(xForm,UNO_QUERY);
+ Reference<XPropertySet> xFormProp(m_xCursor,UNO_QUERY);
Reference< XColumnsSupplier > xSupplyFields;
xFormProp->getPropertyValue("SingleSelectQueryComposer") >>= xSupplyFields;
@@ -627,7 +626,7 @@ void OComboBoxModel::loadData( bool _bForce )
if ( !xDataField.is() )
return;
- ::dbtools::FormattedColumnValue aValueFormatter( getContext(), xForm, xDataField );
+ ::dbtools::FormattedColumnValue aValueFormatter( getContext(), m_xCursor, xDataField );
// Fill Lists
sal_Int16 i = 0;