summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-09 19:32:40 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-09 22:38:50 +0100
commita58c0d4cefe4de132af32d910ec797a2efb3ee3a (patch)
tree184accf354eb592ebba452567a0e80d1c0351f1a /starmath
parentcf3dda7c1c1da50db75d4c022bef279149d26636 (diff)
cid#1556778 COPY_INSTEAD_OF_MOVE
and cid#1546474 COPY_INSTEAD_OF_MOVE cid#1546473 COPY_INSTEAD_OF_MOVE cid#1546469 COPY_INSTEAD_OF_MOVE cid#1546467 COPY_INSTEAD_OF_MOVE cid#1546458 COPY_INSTEAD_OF_MOVE cid#1546448 COPY_INSTEAD_OF_MOVE cid#1546446 COPY_INSTEAD_OF_MOVE cid#1546441 COPY_INSTEAD_OF_MOVE cid#1546424 COPY_INSTEAD_OF_MOVE cid#1546377 COPY_INSTEAD_OF_MOVE cid#1546374 COPY_INSTEAD_OF_MOVE cid#1546352 COPY_INSTEAD_OF_MOVE cid#1546334 COPY_INSTEAD_OF_MOVE cid#1546328 COPY_INSTEAD_OF_MOVE cid#1546310 COPY_INSTEAD_OF_MOVE cid#1546303 COPY_INSTEAD_OF_MOVE Change-Id: I8a43fdd574857ba1d3ec416f23c8269a9a08e12f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160515 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/ElementsDockingWindow.hxx4
-rw-r--r--starmath/source/SmElementsPanel.cxx2
-rw-r--r--starmath/source/SmElementsPanel.hxx2
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;