diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-21 22:01:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-23 09:29:35 +0200 |
commit | 0a02973962f63da4f96009b61bc8584d8ed87f8d (patch) | |
tree | 1555b19dfe0f7c6e0ee0dd56b4879ae25ccbc92a /sc/source/ui/unoobj/chart2uno.cxx | |
parent | 7d3817289586d8765e066fee6551b66ddb5d0ab3 (diff) |
don't need to ctor + assign, ctor is enough
Change-Id: I880ec68c907000829b81318fb3bf3eb7ac0109d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172225
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sc/source/ui/unoobj/chart2uno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/chart2uno.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index e0b5ae53c745..e82c5c2f8b6e 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -925,9 +925,7 @@ private: return false; bool bExternal = ScRefTokenHelper::isExternalRef(pToken); sal_uInt16 nFileId = bExternal ? pToken->GetIndex() : 0; - svl::SharedString aTabName = svl::SharedString::getEmptyString(); - if (bExternal) - aTabName = pToken->GetString(); + svl::SharedString aTabName = bExternal ? pToken->GetString() : svl::SharedString::getEmptyString(); // In saving to XML, we don't prepend address with '$'. setRelative(aData.Ref1); |