diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/miscdlgs/dataproviderdlg.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/unoobj/viewuno.cxx | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/ui/miscdlgs/dataproviderdlg.cxx b/sc/source/ui/miscdlgs/dataproviderdlg.cxx index 83d46d57c5bb..16a6c446647b 100644 --- a/sc/source/ui/miscdlgs/dataproviderdlg.cxx +++ b/sc/source/ui/miscdlgs/dataproviderdlg.cxx @@ -913,9 +913,7 @@ IMPL_LINK_NOARG(ScDataProviderDlg, TransformationSelectHdl, weld::ComboBox&, voi sc::ExternalDataSource ScDataProviderDlg::getDataSource(ScDocument* pDoc) { - OUString aURL = mxEditURL->get_text(); - OUString aProvider = mxProviderList->get_active_text(); - sc::ExternalDataSource aSource(aURL, aProvider, pDoc); + sc::ExternalDataSource aSource(mxEditURL->get_text(), mxProviderList->get_active_text(), pDoc); OUString aID = mxEditID->get_text(); aSource.setID(aID); diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx index 9304d72471d9..2d066bcfc26b 100644 --- a/sc/source/ui/unoobj/viewuno.cxx +++ b/sc/source/ui/unoobj/viewuno.cxx @@ -552,8 +552,7 @@ void ScTabViewObj::SheetChanged( bool bSameTabButMoved ) { sheet::ActivationEvent aEvent; uno::Reference< sheet::XSpreadsheetView > xView(this); - uno::Reference< uno::XInterface > xSource(xView, uno::UNO_QUERY); - aEvent.Source = xSource; + aEvent.Source.set(xView, uno::UNO_QUERY); aEvent.ActiveSheet = new ScTableSheetObj(pDocSh, rViewData.GetTabNo()); // Listener's handler may remove it from the listeners list for (size_t i = aActivationListeners.size(); i > 0; --i) |