diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-30 13:20:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-31 10:00:07 +0200 |
commit | d562c4e4ead3174a9cc720835ecfbfa16e40e15d (patch) | |
tree | c83bf98cd678493190937c19dda62c993849fd99 /sw/inc/cshtyp.hxx | |
parent | 7bf9abffb69966882feecca4b35a04722e5b7822 (diff) |
Get rid of a pointless indirect function pointer variable
Change-Id: I542a5fb00a5c972230c072d72a745fddb095f708
Diffstat (limited to 'sw/inc/cshtyp.hxx')
-rw-r--r-- | sw/inc/cshtyp.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/inc/cshtyp.hxx b/sw/inc/cshtyp.hxx index d456feca753b..5615d341780f 100644 --- a/sw/inc/cshtyp.hxx +++ b/sw/inc/cshtyp.hxx @@ -31,7 +31,7 @@ class SwLayoutFrame; struct SwMoveFnCollection; // Type definition for CursorShell. -// Direction-parameter for MovePage (initialized in SwContentFrame). +// Direction-parameter for MovePage. typedef SwLayoutFrame * (*SwWhichPage)( const SwLayoutFrame * ); SwLayoutFrame *GetPrevFrame( const SwLayoutFrame *pFrame ); SwLayoutFrame *GetThisFrame( const SwLayoutFrame *pFrame ); @@ -40,9 +40,11 @@ typedef SwContentFrame * (*SwPosPage)( const SwLayoutFrame * ); SwContentFrame *GetFirstSub( const SwLayoutFrame *pLayout ); SwContentFrame *GetLastSub( const SwLayoutFrame *pLayout ); -// Direction-parameter for MovePara (initialized in SwContentFrame). +// Direction-parameter for MovePara. typedef bool (*SwWhichPara)( SwPaM&, SwMoveFnCollection const & ); -extern SwWhichPara fnParaPrev, fnParaCurr, fnParaNext; +bool GoPrevPara( SwPaM&, SwMoveFnCollection const &); +SW_DLLPUBLIC bool GoCurrPara( SwPaM&, SwMoveFnCollection const &); +bool GoNextPara( SwPaM&, SwMoveFnCollection const &); extern SwMoveFnCollection const & fnParaStart; extern SwMoveFnCollection const & fnParaEnd; @@ -101,7 +103,6 @@ enum class SwDocPositions OtherEnd }; -SW_DLLPUBLIC SwWhichPara GetfnParaCurr(); SW_DLLPUBLIC SwMoveFnCollection const & GetfnParaStart(); SW_DLLPUBLIC SwMoveFnCollection const & GetfnParaEnd(); |