diff options
author | dante <dante19031999@gmail.com> | 2021-03-01 22:19:29 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-02 07:18:31 +0100 |
commit | 1627539c847dc0afe7441855181a69bc614d60b5 (patch) | |
tree | 64b0c21c7acaaac9e18584e3912dcc69f1dfd5af /starmath/inc | |
parent | c1659be6ff0e0c91e0c7d1e6acb6ab18821e2bf7 (diff) |
Simplify ElementsDockingWindow
This is not related to the multiple smparsers.
Just simple code simplification.
Change-Id: Id95e3b106dfc02fbb8d9d4ee28f21aebc597cd5c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111799
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/ElementsDockingWindow.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx index 153518b210ba..74aab1865d45 100644 --- a/starmath/inc/ElementsDockingWindow.hxx +++ b/starmath/inc/ElementsDockingWindow.hxx @@ -92,6 +92,7 @@ class SmElementsControl : public weld::CustomWidgetController sal_uInt16 m_nCurrentElement; sal_uInt16 m_nCurrentRolloverElement; sal_uInt16 m_nCurrentOffset; + SmParser maParser; Link<SmElement&,void> maSelectHdlLink; std::vector< std::unique_ptr<SmElement> > maElementList; @@ -101,7 +102,7 @@ class SmElementsControl : public weld::CustomWidgetController bool m_bFirstPaintAfterLayout; rtl::Reference<AccessibleSmElementsControl> m_xAccessible; - void addElement(SmParser &rParser, const OUString& aElementVisual, const OUString& aElementSource, const OUString& aHelpText); + void addElement(const OUString& aElementVisual, const OUString& aElementSource, const OUString& aHelpText); void addElements(const SmElementDescr aElementsArray[], sal_uInt16 size); SmElement* current() const; void setCurrentElement(sal_uInt16); |