diff options
| author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-18 12:28:31 +0200 |
|---|---|---|
| committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-18 18:19:09 +0200 |
| commit | 4dbe4a9313d9844c10f71b29a77218d31bc6f3b3 (patch) | |
| tree | caf0ca4ceb3cbbb2aaf1255cebbcb8b38d6d45c5 /starmath | |
| parent | 9e1aee666fa48b768c829bbc707f47a98250df1e (diff) | |
loplugin:passstuffbyref
Change-Id: I4f01eb3842ef198f02af274f54afb2760c820a4b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120655
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
| -rw-r--r-- | starmath/inc/mathml/element.hxx | 4 | ||||
| -rw-r--r-- | starmath/inc/node.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/starmath/inc/mathml/element.hxx b/starmath/inc/mathml/element.hxx index d51f5b07e01c..3a6514542856 100644 --- a/starmath/inc/mathml/element.hxx +++ b/starmath/inc/mathml/element.hxx @@ -111,7 +111,7 @@ public: // location in the source * Returns the location in the source code of the node type * @return selection */ - ESelection getESelection() const { return m_aESelection; }; + const ESelection& getESelection() const { return m_aESelection; }; /** * Returns the location in the source code of the node type @@ -280,7 +280,7 @@ public: // text elements /** * Returns the element text */ - OUString getText() const { return m_aText; }; + const OUString& getText() const { return m_aText; }; /** * Returns the element text diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index 7014f7c2363f..427966279dd6 100644 --- a/starmath/inc/node.hxx +++ b/starmath/inc/node.hxx @@ -390,7 +390,7 @@ public: * Gets node position in input text. * @return node position in input text */ - ESelection GetSelection() const { return m_aESelection; } + const ESelection& GetSelection() const { return m_aESelection; } /** * Gets node position in input text. |
