diff options
Diffstat (limited to 'dbaccess/source/ui/dlg/UserAdmin.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/UserAdmin.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dbaccess/source/ui/dlg/UserAdmin.cxx b/dbaccess/source/ui/dlg/UserAdmin.cxx index 8cf9fa62319b..54d63191dc76 100644 --- a/dbaccess/source/ui/dlg/UserAdmin.cxx +++ b/dbaccess/source/ui/dlg/UserAdmin.cxx @@ -23,6 +23,7 @@ #include "UITools.hxx" #include "dbu_dlg.hrc" #include <comphelper/types.hxx> +#include <comphelper/processfactory.hxx> #include <com/sun/star/sdbc/XDatabaseMetaData.hpp> #include <com/sun/star/sdbcx/XDataDefinitionSupplier.hpp> #include <com/sun/star/sdbcx/XUsersSupplier.hpp> @@ -270,7 +271,7 @@ IMPL_LINK( OUserAdmin, UserHdl, PushButton *, pButton ) } catch(const SQLException& e) { - ::dbaui::showError(::dbtools::SQLExceptionInfo(e),this,m_xORB); + ::dbaui::showError(::dbtools::SQLExceptionInfo(e),this, comphelper::getComponentContext(m_xORB)); return 0; } catch(Exception& ) @@ -306,7 +307,7 @@ void OUserAdmin::fillWindows(::std::vector< ISaveValueWrapper* >& /*_rControlLis // ----------------------------------------------------------------------------- void OUserAdmin::implInitControls(const SfxItemSet& _rSet, sal_Bool _bSaveValue) { - m_TableCtrl.setORB(m_xORB); + m_TableCtrl.setComponentContext(comphelper::getComponentContext(m_xORB)); try { if ( !m_xConnection.is() && m_pAdminDialog ) @@ -333,7 +334,7 @@ void OUserAdmin::implInitControls(const SfxItemSet& _rSet, sal_Bool _bSaveValue) } catch(const SQLException& e) { - ::dbaui::showError(::dbtools::SQLExceptionInfo(e),this,m_xORB); + ::dbaui::showError(::dbtools::SQLExceptionInfo(e),this,comphelper::getComponentContext(m_xORB)); } OGenericAdministrationPage::implInitControls(_rSet, _bSaveValue); |