summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-13 20:34:17 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-12-14 11:48:47 +0100
commitb9846d15bbf956915db7f026822137681f3bfdd8 (patch)
tree4e59439d2789231027d6f235b3489cb515e5df26 /sc
parent77ceeb844ac042f6a6089748ab4f1420c5dae5e9 (diff)
cid#1545734 COPY_INSTEAD_OF_MOVE
and cid#1545723 COPY_INSTEAD_OF_MOVE cid#1545708 COPY_INSTEAD_OF_MOVE cid#1545705 COPY_INSTEAD_OF_MOVE cid#1545684 COPY_INSTEAD_OF_MOVE cid#1545674 COPY_INSTEAD_OF_MOVE cid#1545673 COPY_INSTEAD_OF_MOVE cid#1545667 COPY_INSTEAD_OF_MOVE cid#1545661 COPY_INSTEAD_OF_MOVE cid#1545660 COPY_INSTEAD_OF_MOVE cid#1545657 COPY_INSTEAD_OF_MOVE cid#1545653 COPY_INSTEAD_OF_MOVE cid#1545636 COPY_INSTEAD_OF_MOVE cid#1545624 COPY_INSTEAD_OF_MOVE cid#1546124 COPY_INSTEAD_OF_MOVE Change-Id: I7d50594e046a022147d9ddf077b8b2d8027f9bca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160721 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/dataprovider/sqldataprovider.cxx2
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx6
2 files changed, 2 insertions, 6 deletions
diff --git a/sc/source/ui/dataprovider/sqldataprovider.cxx b/sc/source/ui/dataprovider/sqldataprovider.cxx
index 9aed1996c6ab..e255438b6be0 100644
--- a/sc/source/ui/dataprovider/sqldataprovider.cxx
+++ b/sc/source/ui/dataprovider/sqldataprovider.cxx
@@ -51,7 +51,7 @@ SQLFetchThread::SQLFetchThread(
, mrDocument(rDoc)
, maID(rID)
, maDataTransformations(std::move(rTransformations))
- , maImportFinishedHdl(aImportFinishedHdl)
+ , maImportFinishedHdl(std::move(aImportFinishedHdl))
{
}
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index e20a473f06ef..c99247af979f 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -3147,11 +3147,7 @@ public:
for (sal_Int32 nRow = aRange.aStart.Row(); nRow <= aRange.aEnd.Row(); ++nRow)
{
if (meOrigin != chart2::data::LabelOrigin_LONG_SIDE)
- {
- OUString aString = ScResId(STR_ROW) +
- " " + OUString::number( nRow+1 );
- pArr[mnCount] = aString;
- }
+ pArr[mnCount] = ScResId(STR_ROW) + " " + OUString::number(nRow + 1);
else //only indices for categories
pArr[mnCount] = OUString::number( mnCount+1 );
++mnCount;