summaryrefslogtreecommitdiff
path: root/vcl/inc/salvtables.hxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-11-26 21:54:42 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2024-11-27 07:38:02 +0100
commitcf108a359b77ce58c2f8bb7f4116f87a8c536ca5 (patch)
treebee5ebee9f0b48f6d5f6f761155c12dcaf9cfbc7 /vcl/inc/salvtables.hxx
parent68699d3699fed08956e37e53664fa92e70487b8d (diff)
weld: Return unique_ptr in weld::Dialog::widget_for_response
... to make more obvious from the API that the caller owns the returned weld::Button* (but not the underlying toolkit widget). Change-Id: I64f57f80e4eea4c2c984fa7b615b5a2350ed892a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177375 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/inc/salvtables.hxx')
-rw-r--r--vcl/inc/salvtables.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx
index 3af166383832..ec2544e9f009 100644
--- a/vcl/inc/salvtables.hxx
+++ b/vcl/inc/salvtables.hxx
@@ -551,7 +551,7 @@ public:
virtual void set_centered_on_parent(bool /*bTrackGeometryRequests*/) override;
- virtual weld::Button* weld_widget_for_response(int nResponse) override;
+ virtual std::unique_ptr<weld::Button> weld_widget_for_response(int nResponse) override;
virtual void set_default_response(int nResponse) override;
@@ -592,7 +592,7 @@ public:
virtual void set_page_sensitive(const OUString& rIdent, bool bSensitive) override;
virtual void set_page_side_help_id(const OUString& rHelpId) override;
virtual void set_page_side_image(const OUString& rImage) override;
- weld::Button* weld_widget_for_response(int nResponse) override;
+ std::unique_ptr<weld::Button> weld_widget_for_response(int nResponse) override;
virtual ~SalInstanceAssistant() override;
};