summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-18 09:22:27 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-27 06:48:25 +0000
commit508c95f1b655d9cfa6be37a5a9de9aff6fd383bf (patch)
treed1c8626818cbf26a699875ae2d82f751a1657e92 /starmath
parent9f4af777a832d8a0b9a21d793d421fa6228131e0 (diff)
improve passstuffbyref return analysis
Change-Id: I4258bcc97273d8bb7a8c4879fac02a427f76e18c Reviewed-on: https://gerrit.libreoffice.org/27317 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/document.hxx2
-rw-r--r--starmath/source/document.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index fcf1c200f7af..fa370de600f2 100644
--- a/starmath/inc/document.hxx
+++ b/starmath/inc/document.hxx
@@ -182,7 +182,7 @@ public:
const std::set< OUString > & GetUsedSymbols() const { return maUsedSymbols; }
- OUString GetAccessibleText();
+ OUString const & GetAccessibleText();
EditEngine & GetEditEngine();
SfxItemPool & GetEditEngineItemPool();
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 3bbda764b41c..1a984526dbdc 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -213,7 +213,7 @@ void SmDocShell::SetFormat(SmFormat& rFormat)
}
}
-OUString SmDocShell::GetAccessibleText()
+OUString const & SmDocShell::GetAccessibleText()
{
ArrangeFormula();
if (maAccText.isEmpty())