diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-12-06 01:03:50 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-12-06 12:21:00 +0100 |
commit | 9809441f05e4dbac8e12b042fd4391f1a7580643 (patch) | |
tree | 2303963c415716775cff0fa0d004938c7c9beaa2 /sc/source/ui/view/tabview3.cxx | |
parent | 5bd9ded5f01c39f201d21a90541aecb6dba80fad (diff) |
rename In() to Contains()
Similarly to b22d4785310eac35696d, 'A.In(B)' makes it unclear
whether the check is for A in B or B in A, as it's actually
the latter.
Change-Id: Iaccc41d40f4bb105a44c1bb8d9211c06d1a3c127
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126392
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/source/ui/view/tabview3.cxx')
-rw-r--r-- | sc/source/ui/view/tabview3.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx index 7807288fa123..a500d5fe03ab 100644 --- a/sc/source/ui/view/tabview3.cxx +++ b/sc/source/ui/view/tabview3.cxx @@ -87,7 +87,7 @@ ScRange lcl_getSubRangeByIndex( const ScRange& rRange, sal_Int32 nIndex ) aResult.IncCol( static_cast< SCCOL >( nIndex % nWidth ) ); aResult.IncRow( static_cast< SCROW >( (nIndex % nArea) / nWidth ) ); aResult.IncTab( static_cast< SCTAB >( nIndex / nArea ) ); - if( !rRange.In( aResult ) ) + if( !rRange.Contains( aResult ) ) aResult = rRange.aStart; } @@ -1226,7 +1226,7 @@ void ScTabView::MoveCursorAbs( SCCOL nCurX, SCROW nCurY, ScFollowMode eMode, const ScMarkData& rMark = aViewData.GetMarkData(); ScRangeList aSelList; rMark.FillRangeListWithMarks(&aSelList, false); - if (!aSelList.In(ScRange(nCurX, nCurY, aViewData.GetTabNo()))) + if (!aSelList.Contains(ScRange(nCurX, nCurY, aViewData.GetTabNo()))) // Cursor not in existing selection. Start a new selection. DoneBlockMode(true); } |