diff options
Diffstat (limited to 'sc/source/core/data/document.cxx')
-rw-r--r-- | sc/source/core/data/document.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index bf608c3efc27..39c86340391a 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -377,7 +377,7 @@ void ScDocument::CreateValidTabName(OUString& rName) const // Get Custom prefix const ScDefaultsOptions& rOpt = SC_MOD()->GetDefaultsOptions(); - OUString aStrTable = rOpt.GetInitTabPrefix(); + const OUString& aStrTable = rOpt.GetInitTabPrefix(); bool bOk = false; @@ -425,7 +425,7 @@ void ScDocument::CreateValidTabNames(std::vector<OUString>& aNames, SCTAB nCount // Get Custom prefix const ScDefaultsOptions& rOpt = SC_MOD()->GetDefaultsOptions(); - OUString aStrTable = rOpt.GetInitTabPrefix(); + const OUString& aStrTable = rOpt.GetInitTabPrefix(); OUStringBuffer rName; |