summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp/gridcell.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-05 09:49:43 +0200
committerNoel Grandin <noel@peralex.com>2015-11-05 09:59:30 +0200
commit3d96f1ef5556869bb60522c9cfa5c9c6f8db0a18 (patch)
treedd4a4f6f457333ff91660824b817db22c461bf10 /svx/source/fmcomp/gridcell.cxx
parent3fdbf5935e0aff6350e861e868c7e0a12dd1bc8f (diff)
use uno::Reference::set method instead of assignment
Change-Id: I2f8c9cb71a06f7796576509f605796624e654422
Diffstat (limited to 'svx/source/fmcomp/gridcell.cxx')
-rw-r--r--svx/source/fmcomp/gridcell.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index 21b5fbae06f1..1c05b027a468 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -207,7 +207,7 @@ void DbGridColumn::CreateControl(sal_Int32 _nFieldPos, const Reference< css::bea
}
Reference< XRowSet > xCur;
if (m_rParent.getDataSource())
- xCur = Reference< XRowSet > (Reference< XInterface >(*m_rParent.getDataSource()), UNO_QUERY);
+ xCur.set(Reference< XInterface >(*m_rParent.getDataSource()), UNO_QUERY);
// TODO : the cursor wrapper should use an XRowSet interface, too
pCellControl->Init( m_rParent.GetDataWindow(), xCur );
@@ -1919,7 +1919,7 @@ void DbNumericField::implAdjustGenericFieldSetting( const Reference< XPropertySe
Reference< css::util::XNumberFormatsSupplier > xSupplier;
Reference< XRowSet > xForm;
if ( m_rColumn.GetParent().getDataSource() )
- xForm = Reference< XRowSet >( Reference< XInterface >(*m_rColumn.GetParent().getDataSource()), UNO_QUERY );
+ xForm.set( Reference< XInterface >(*m_rColumn.GetParent().getDataSource()), UNO_QUERY );
if ( xForm.is() )
xSupplier = getNumberFormats( getConnection( xForm ), true );
SvNumberFormatter* pFormatterUsed = NULL;
@@ -3002,7 +3002,7 @@ void DbFilterField::Update()
// the columnmodel
Reference< css::container::XChild > xModelAsChild(m_rColumn.getModel(), UNO_QUERY);
// the grid model
- xModelAsChild = Reference< css::container::XChild > (xModelAsChild->getParent(),UNO_QUERY);
+ xModelAsChild.set(xModelAsChild->getParent(),UNO_QUERY);
Reference< XRowSet > xForm(xModelAsChild->getParent(), UNO_QUERY);
if (!xForm.is())
return;