summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/uno/unoDirectSql.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-09-15 20:41:25 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-09-20 21:25:12 +0200
commit024a57017384a61b4a61056f1de275f44642bef3 (patch)
tree6d9896c34326c1ef79325dd6e8d8730a40df5c4a /dbaccess/source/ui/uno/unoDirectSql.cxx
parente0750697dcd30848411a162453813c5b0fafc44b (diff)
drop newly unnecessary OGenericUnoDialog::Dialog
Change-Id: If047d08cea93fdfacff9ee00c69cf57ba08c916c Reviewed-on: https://gerrit.libreoffice.org/78972 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess/source/ui/uno/unoDirectSql.cxx')
-rw-r--r--dbaccess/source/ui/uno/unoDirectSql.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/uno/unoDirectSql.cxx b/dbaccess/source/ui/uno/unoDirectSql.cxx
index f3af4f40640e..07644a9c52cf 100644
--- a/dbaccess/source/ui/uno/unoDirectSql.cxx
+++ b/dbaccess/source/ui/uno/unoDirectSql.cxx
@@ -78,7 +78,7 @@ namespace dbaui
IMPLEMENT_PROPERTYCONTAINER_DEFAULTS( ODirectSQLDialog )
- svt::OGenericUnoDialog::Dialog ODirectSQLDialog::createDialog(const css::uno::Reference<css::awt::XWindow>& rParent)
+ std::unique_ptr<weld::DialogController> ODirectSQLDialog::createDialog(const css::uno::Reference<css::awt::XWindow>& rParent)
{
// obtain all the objects needed for the dialog
Reference< XConnection > xConnection = m_xActiveConnection;
@@ -99,10 +99,10 @@ namespace dbaui
if (!xConnection.is())
{
// can't create the dialog if I have improper settings
- return svt::OGenericUnoDialog::Dialog();
+ return nullptr;
}
- return svt::OGenericUnoDialog::Dialog(std::make_unique<DirectSQLDialog>(pParent, xConnection));
+ return std::make_unique<DirectSQLDialog>(pParent, xConnection);
}
void ODirectSQLDialog::implInitialize(const Any& _rValue)