summaryrefslogtreecommitdiff
path: root/sw/inc/crsrsh.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-30 11:48:07 +0200
committerNoel Grandin <noel@peralex.com>2016-08-31 10:00:07 +0200
commitfd405ab457183f1c0d48d47bbd3308edb2e30242 (patch)
treefaad42c1d8009c5d6118df7722216151a95b5812 /sw/inc/crsrsh.hxx
parent4300656d9f0015c6a894b76ddcf537b446d0b9ba (diff)
remove the SwMoveFnCollection* typedefs
which were just obscuring the code, and pass it around by const& Change-Id: I4fce5ef4bf616867c46a145f660a8e90d3c94462
Diffstat (limited to 'sw/inc/crsrsh.hxx')
-rw-r--r--sw/inc/crsrsh.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx
index b54998022275..2b9b013fd4b2 100644
--- a/sw/inc/crsrsh.hxx
+++ b/sw/inc/crsrsh.hxx
@@ -267,7 +267,7 @@ typedef bool (SwCursor:: *FNCursor)();
protected:
- inline SwMoveFnCollection* MakeFindRange( sal_uInt16, sal_uInt16, SwPaM* ) const;
+ inline SwMoveFnCollection const & MakeFindRange( sal_uInt16, sal_uInt16, SwPaM* ) const;
/*
* Compare-Methode for the StackCursor and the current Cursor.
@@ -361,11 +361,11 @@ public:
bool SttEndDoc( bool bStt );
bool MovePage( SwWhichPage, SwPosPage );
- bool MovePara( SwWhichPara, SwPosPara );
- bool MoveSection( SwWhichSection, SwPosSection );
- bool MoveTable( SwWhichTable, SwPosTable );
+ bool MovePara( SwWhichPara, SwMoveFnCollection const & );
+ bool MoveSection( SwWhichSection, SwMoveFnCollection const & );
+ bool MoveTable( SwWhichTable, SwMoveFnCollection const & );
bool MoveColumn( SwWhichColumn, SwPosColumn );
- bool MoveRegion( SwWhichRegion, SwPosRegion );
+ bool MoveRegion( SwWhichRegion, SwMoveFnCollection const & );
sal_uLong Find( const css::util::SearchOptions2& rSearchOpt,
bool bSearchInNotes,
@@ -845,7 +845,7 @@ public:
};
// Cursor Inlines:
-inline SwMoveFnCollection* SwCursorShell::MakeFindRange(
+inline SwMoveFnCollection const & SwCursorShell::MakeFindRange(
sal_uInt16 nStt, sal_uInt16 nEnd, SwPaM* pPam ) const
{
return m_pCurrentCursor->MakeFindRange( (SwDocPositions)nStt, (SwDocPositions)nEnd, pPam );