diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-09 21:30:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-10 11:57:35 +0100 |
commit | 15ff0c3828406aa00d8fa0d1e7de90916f9c13cc (patch) | |
tree | 466f2321a34d00c9392a4a73e7c7c284cd4e8805 /sc | |
parent | 9c2c815d853a626d4329a7e8a2e99671bdb38f44 (diff) |
cid#1545975 COPY_INSTEAD_OF_MOVE
and
cid#1545955 COPY_INSTEAD_OF_MOVE
cid#1545954 COPY_INSTEAD_OF_MOVE
cid#1545952 COPY_INSTEAD_OF_MOVE
cid#1545948 COPY_INSTEAD_OF_MOVE
cid#1545943 COPY_INSTEAD_OF_MOVE
cid#1545935 COPY_INSTEAD_OF_MOVE
cid#1545930 COPY_INSTEAD_OF_MOVE
cid#1545928 COPY_INSTEAD_OF_MOVE
cid#1545925 COPY_INSTEAD_OF_MOVE
cid#1545922 COPY_INSTEAD_OF_MOVE
Change-Id: I28d830504337f417829c675b1eb9c763b83b30c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160522
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/orcus/interface.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx index b349016355b7..f9e78e27f4b1 100644 --- a/sc/source/filter/orcus/interface.cxx +++ b/sc/source/filter/orcus/interface.cxx @@ -2090,14 +2090,12 @@ void ScOrucsImportCellStyle::reset() void ScOrucsImportCellStyle::set_name(std::string_view name) { - OUString aName(name.data(), name.size(), mrFactory.getGlobalSettings().getTextEncoding()); - maCurrentStyle.maName = aName; + maCurrentStyle.maName = OUString(name.data(), name.size(), mrFactory.getGlobalSettings().getTextEncoding()); } void ScOrucsImportCellStyle::set_display_name(std::string_view name) { - OUString aName(name.data(), name.size(), mrFactory.getGlobalSettings().getTextEncoding()); - maCurrentStyle.maDisplayName = aName; + maCurrentStyle.maDisplayName = OUString(name.data(), name.size(), mrFactory.getGlobalSettings().getTextEncoding()); } void ScOrucsImportCellStyle::set_xf(size_t index) @@ -2112,8 +2110,7 @@ void ScOrucsImportCellStyle::set_builtin(size_t index) void ScOrucsImportCellStyle::set_parent_name(std::string_view name) { - const OUString aParentName(name.data(), name.size(), mrFactory.getGlobalSettings().getTextEncoding()); - maCurrentStyle.maParentName = aParentName; + maCurrentStyle.maParentName = OUString(name.data(), name.size(), mrFactory.getGlobalSettings().getTextEncoding()); } void ScOrucsImportCellStyle::commit() |