diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-09-23 18:13:05 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-09-25 21:09:07 +0200 |
commit | ad19f3b9f23ddd4179589e9a641094f3e7642e72 (patch) | |
tree | 49e2f2e2bd85e82d23cab3aacacef373e846f24d /include/vcl/widgetbuilder.hxx | |
parent | 385bbbd6e1f602d066b00c0913aefa36e75ce5a6 (diff) |
tdf#130857 VclBuilder: Pass UI dir/root to BuilderBase
Pass the UI file root down to `BuilderBase`, and add
a new getter `BuilderBase::getUIFileUrl` to get the
URL composed of the UI dir and the UI file passed to
the ctor.
This is in preparation of moving the `XmlReader`
creation out of the `VclBuilder` ctor, so the code
can be reused by the upcoming `QtBuilder`.
Change the UI directory param from `const OUString&` to
`std::u16_string_view` as suggested by the clang plugin.
Change-Id: I3f7719e30e55bae3c774da704e642e4227165a76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173827
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'include/vcl/widgetbuilder.hxx')
-rw-r--r-- | include/vcl/widgetbuilder.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/widgetbuilder.hxx b/include/vcl/widgetbuilder.hxx index da2370ad5845..ccd418e2c0d2 100644 --- a/include/vcl/widgetbuilder.hxx +++ b/include/vcl/widgetbuilder.hxx @@ -33,8 +33,8 @@ template <typename Widget, typename WidgetPtr> class WidgetBuilder : public BuilderBase { protected: - WidgetBuilder(const OUString& rUIFile, bool bLegacy) - : BuilderBase(rUIFile, bLegacy) + WidgetBuilder(std::u16string_view sUIDir, const OUString& rUIFile, bool bLegacy) + : BuilderBase(sUIDir, rUIFile, bLegacy) { } virtual ~WidgetBuilder() = default; |