diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-02-25 08:24:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-02-25 12:20:38 +0100 |
commit | 8811dd76f02bce0425d784770af8c283db216ee9 (patch) | |
tree | ee09f8d7603bebcf9bb38603e63ae69e73c7b72a /sw/source/ui/dbui | |
parent | 02caa6e40cfa55d96befc82515b343045b5cfd7b (diff) |
replace mysterious 0x0C with more meaningful FrameSearchFlag
Change-Id: Id95879ed04b844d939062f0d6a21b4ab508b9d73
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130519
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/dbui')
-rw-r--r-- | sw/source/ui/dbui/dbtablepreviewdialog.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/ui/dbui/dbtablepreviewdialog.cxx b/sw/source/ui/dbui/dbtablepreviewdialog.cxx index b85f169b4f45..cd1556776da1 100644 --- a/sw/source/ui/dbui/dbtablepreviewdialog.cxx +++ b/sw/source/ui/dbui/dbtablepreviewdialog.cxx @@ -22,6 +22,7 @@ #include <cppuhelper/implbase.hxx> #include <com/sun/star/lang/XEventListener.hpp> #include <com/sun/star/frame/Frame.hpp> +#include <com/sun/star/frame/FrameSearchFlag.hpp> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -96,7 +97,8 @@ SwDBTablePreviewDialog::SwDBTablePreviewDialog(weld::Window* pParent, uno::Seque util::URL aURL; aURL.Complete = ".component:DB/DataSourceBrowser"; - uno::Reference<frame::XDispatch> xD = xFrame->queryDispatch(aURL, "", 0x0C); + uno::Reference<frame::XDispatch> xD = xFrame->queryDispatch(aURL, "", + css::frame::FrameSearchFlag::CHILDREN | css::frame::FrameSearchFlag::CREATE); if (xD.is()) { xD->dispatch(aURL, rValues); |