summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-13 17:52:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-13 17:54:34 +0200
commit6b8440134f4a8fa05450cdd492942e92c1f75803 (patch)
tree841b302f0544fe73d1f30fd97e6f0db5030ae752 /svx/source/fmcomp
parent30069114fef2858936c988e8fbc92a69b2ddc8d3 (diff)
loplugin:staticcall
Change-Id: I41ecb2b80251f56823f6b59c0746ff50531e6c84
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r--svx/source/fmcomp/fmgridcl.cxx2
-rw-r--r--svx/source/fmcomp/fmgridif.cxx4
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();