diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-13 17:52:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-13 17:54:34 +0200 |
commit | 6b8440134f4a8fa05450cdd492942e92c1f75803 (patch) | |
tree | 841b302f0544fe73d1f30fd97e6f0db5030ae752 /svx/source/fmcomp | |
parent | 30069114fef2858936c988e8fbc92a69b2ddc8d3 (diff) |
loplugin:staticcall
Change-Id: I41ecb2b80251f56823f6b59c0746ff50531e6c84
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r-- | svx/source/fmcomp/fmgridcl.cxx | 2 | ||||
-rw-r--r-- | svx/source/fmcomp/fmgridif.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx index 7455e6d31d34..7f74abd738dd 100644 --- a/svx/source/fmcomp/fmgridcl.cxx +++ b/svx/source/fmcomp/fmgridcl.cxx @@ -926,7 +926,7 @@ void FmGridHeader::PostExecuteColumnContextMenu(sal_uInt16 nColId, const PopupMe { FormControlFactory factory; - OUString sLabel = factory.getDefaultUniqueName_ByComponentType( + OUString sLabel = FormControlFactory::getDefaultUniqueName_ByComponentType( Reference< XNameAccess >( xCols, UNO_QUERY_THROW ), xNewCol ); xNewCol->setPropertyValue( FM_PROP_LABEL, makeAny( sLabel ) ); xNewCol->setPropertyValue( FM_PROP_NAME, makeAny( sLabel ) ); diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx index c12770ea9c94..217f19ffdf5e 100644 --- a/svx/source/fmcomp/fmgridif.cxx +++ b/svx/source/fmcomp/fmgridif.cxx @@ -1828,7 +1828,7 @@ void FmXGridPeer::elementReplaced(const ContainerEvent& evt) throw( RuntimeExcep Reference< XColumnsSupplier > xSuppColumns; CursorWrapper* pGridDataSource = pGrid->getDataSource(); if ( pGridDataSource ) - xSuppColumns = xSuppColumns.query( (Reference< XInterface >)( *pGridDataSource ) ); + xSuppColumns.set((Reference< XInterface >)( *pGridDataSource ), css::uno::UNO_QUERY); Reference< XNameAccess > xColumnsByName; if ( xSuppColumns.is() ) xColumnsByName = xSuppColumns->getColumns(); @@ -2147,7 +2147,7 @@ void FmXGridPeer::dispose() throw( RuntimeException, std::exception ) xInterceptor->setSlaveDispatchProvider( NULL ); // start over with the next chain element - xInterceptor = xInterceptor.query( xSlave ); + xInterceptor.set(xSlave, css::uno::UNO_QUERY); } DisConnectFromDispatcher(); |