diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-13 16:41:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-14 12:28:46 +0100 |
commit | 7dd028c0e498ba86d96e0e99744fec6ddc21a91d (patch) | |
tree | 38fc4a741aee2272ddfcd1f411920dd8fcd25f58 /sc | |
parent | 2ee0500b6033e7dbfef221e28042f23da361869e (diff) |
cid#1545211 COPY_INSTEAD_OF_MOVE
and
cid#1545218 COPY_INSTEAD_OF_MOVE
cid#1545232 COPY_INSTEAD_OF_MOVE
cid#1545243 COPY_INSTEAD_OF_MOVE
cid#1545246 COPY_INSTEAD_OF_MOVE
cid#1545251 COPY_INSTEAD_OF_MOVE
cid#1545260 COPY_INSTEAD_OF_MOVE
cid#1545261 COPY_INSTEAD_OF_MOVE
cid#1545276 COPY_INSTEAD_OF_MOVE
cid#1545295 COPY_INSTEAD_OF_MOVE
cid#1545297 COPY_INSTEAD_OF_MOVE
cid#1545301 COPY_INSTEAD_OF_MOVE
cid#1545302 COPY_INSTEAD_OF_MOVE
Change-Id: I97ba935a4a2b8715b55ebbf6e853a66260b2eb90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160686
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/fstalgorithm.hxx | 6 | ||||
-rw-r--r-- | sc/source/core/data/dptabsrc.cxx | 3 |
2 files changed, 2 insertions, 7 deletions
diff --git a/sc/inc/fstalgorithm.hxx b/sc/inc/fstalgorithm.hxx index f3f189184360..7db039fd0905 100644 --- a/sc/inc/fstalgorithm.hxx +++ b/sc/inc/fstalgorithm.hxx @@ -76,12 +76,8 @@ void buildSpanWithValue( template<typename Key, typename Span> std::vector<Span> toSpanArray( const mdds::flat_segment_tree<Key,bool>& rTree ) { - typedef mdds::flat_segment_tree<Key,bool> FstType; - std::vector<Span> aSpans; - - typename FstType::const_iterator it = rTree.begin(), itEnd = rTree.end(); - buildSpan<Key,Span>(aSpans, it, itEnd, nullptr); + buildSpan<Key,Span>(aSpans, rTree.begin(), rTree.end(), nullptr); return aSpans; } diff --git a/sc/source/core/data/dptabsrc.cxx b/sc/source/core/data/dptabsrc.cxx index f589e1b538e8..c896fc022b15 100644 --- a/sc/source/core/data/dptabsrc.cxx +++ b/sc/source/core/data/dptabsrc.cxx @@ -372,9 +372,8 @@ uno::Sequence< uno::Sequence<sheet::DataResult> > SAL_CALL ScDPSource::getResult uno::Sequence<sheet::DataResult>* pRowAry = aSeq.getArray(); for (sal_Int32 nRow = 0; nRow < nRowCount; nRow++) { - uno::Sequence<sheet::DataResult> aColSeq( nColCount ); // use default values of DataResult - pRowAry[nRow] = aColSeq; + pRowAry[nRow] = uno::Sequence<sheet::DataResult>(nColCount); } ScDPResultFilterContext aFilterCxt; |