summaryrefslogtreecommitdiff
path: root/include/sfx2
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-06-17 13:26:18 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-06-18 05:26:26 +0200
commit8a10012039204b208aea3bc2f9da9fe1162c4a2a (patch)
tree04bf69b8d75008c65546486e81411886447382d7 /include/sfx2
parentc39e4f6b8a942680bc7250177c34fd034a0605e0 (diff)
tdf#159835 sfx2: Use reference instead of pointer
This e.g. makes it clear that this is never null. Also use an `m` prefix for the class member. Change-Id: Ia66245f17e7f0ca9e57750e8606c8ccc1387eb97 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169004 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'include/sfx2')
-rw-r--r--include/sfx2/sidebar/TabBar.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sfx2/sidebar/TabBar.hxx b/include/sfx2/sidebar/TabBar.hxx
index bdaa442c58ef..f83ac163604e 100644
--- a/include/sfx2/sidebar/TabBar.hxx
+++ b/include/sfx2/sidebar/TabBar.hxx
@@ -61,7 +61,7 @@ public:
const css::uno::Reference<css::frame::XFrame>& rxFrame,
::std::function<void (const OUString& rsDeckId)> aDeckActivationFunctor,
PopupMenuProvider aPopupMenuProvider,
- SidebarController* rParentSidebarController);
+ SidebarController& rParentSidebarController);
weld::Container* GetContainer() { return m_xContainer.get(); }
@@ -127,7 +127,7 @@ private:
DECL_LINK(OnToolboxClicked, weld::Toggleable&, void);
- SidebarController* pParentSidebarController;
+ SidebarController& mrParentSidebarController;
};