diff options
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/ElementsDockingWindow.hxx | 4 | ||||
-rw-r--r-- | starmath/source/SmElementsPanel.cxx | 2 | ||||
-rw-r--r-- | starmath/source/SmElementsPanel.hxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx index 6bbb4a542756..971c2f3b6fb2 100644 --- a/starmath/inc/ElementsDockingWindow.hxx +++ b/starmath/inc/ElementsDockingWindow.hxx @@ -46,7 +46,7 @@ class SmElementsControl std::vector<std::unique_ptr<ElementData>> maItemDatas; std::unique_ptr<weld::IconView> mpIconView; - Link<OUString, void> maSelectHdlLink; + Link<const OUString&, void> maSelectHdlLink; void addElement(const OUString& aElementVisual, const OUString& aElementSource, const OUString& aHelpText); void addElements(int nCategory); @@ -69,7 +69,7 @@ public: void setSmSyntaxVersion(sal_Int16 nSmSyntaxVersion); - void SetSelectHdl(const Link<OUString, void>& rLink) { maSelectHdlLink = rLink; } + void SetSelectHdl(const Link<const OUString&, void>& rLink) { maSelectHdlLink = rLink; } static Color GetTextColor(); static Color GetControlBackground(); diff --git a/starmath/source/SmElementsPanel.cxx b/starmath/source/SmElementsPanel.cxx index dec685787c3a..a28813cf041a 100644 --- a/starmath/source/SmElementsPanel.cxx +++ b/starmath/source/SmElementsPanel.cxx @@ -73,7 +73,7 @@ IMPL_LINK(SmElementsPanel, CategorySelectedHandle, weld::ComboBox&, rList, void) mxElementsControl->setSmSyntaxVersion(pViewSh->GetDoc()->GetSmSyntaxVersion()); } -IMPL_LINK(SmElementsPanel, ElementClickHandler, OUString, ElementSource, void) +IMPL_LINK(SmElementsPanel, ElementClickHandler, const OUString&, ElementSource, void) { if (SmViewShell* pViewSh = GetView()) { diff --git a/starmath/source/SmElementsPanel.hxx b/starmath/source/SmElementsPanel.hxx index d7e4609a4246..c3dde01c6724 100644 --- a/starmath/source/SmElementsPanel.hxx +++ b/starmath/source/SmElementsPanel.hxx @@ -41,7 +41,7 @@ public: private: DECL_LINK(CategorySelectedHandle, weld::ComboBox&, void); - DECL_LINK(ElementClickHandler, OUString, void); + DECL_LINK(ElementClickHandler, const OUString&, void); SmViewShell* GetView() const; |