summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-09-28 09:30:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-28 11:29:44 +0200
commit8d07dd1b5c9a81ac95407706ab93fdb3f1d82c13 (patch)
treed351e12ccb5ccfc202e179586a6d243a2f076c36 /sc/source/filter/xml
parent217dab1c2c197bbaff8d9948ccb8e7cb4b959fcf (diff)
elide some ref-counting
Change-Id: I9fb70d1612dda3c20a683a050f550d1830dd1fc6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140693 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/xml')
-rw-r--r--sc/source/filter/xml/xmlcelli.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index 29450409e608..89994f2e61e5 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -1337,7 +1337,7 @@ void ScXMLTableRowCellContext::PutFormulaCell( const ScAddress& rCellPos )
ScDocument* pDoc = rXMLImport.GetDocument();
ScDocumentImport& rDocImport = rXMLImport.GetDoc();
- OUString aText = maFormula->first;
+ const OUString & aText = maFormula->first;
ScExternalRefManager::ApiGuard aExtRefGuard(*pDoc);