summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/mathml/element.hxx4
-rw-r--r--starmath/inc/node.hxx2
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.