diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-21 11:31:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-21 15:38:40 +0200 |
commit | 48da675a67a2bfd2eadfd6d4c6dba0dee74b5326 (patch) | |
tree | bceb3b95007713c017d54520599ff2d2c7fe7a45 /sw/source/uibase/dialog | |
parent | 9b68ce7b0f2326ec540717ec5c8207825403774e (diff) |
loplugin:unusedfields in sw part2
Change-Id: I7404fcac486f54fc0e310f401d8546c4aacfede2
Reviewed-on: https://gerrit.libreoffice.org/39040
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/dialog')
-rw-r--r-- | sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx index 52aeec2e47a3..32f651cd529a 100644 --- a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx +++ b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx @@ -60,10 +60,6 @@ using namespace ::com::sun::star::beans; SFX_IMPL_CHILDWINDOW_WITHID(SwSpellDialogChildWindow, FN_SPELL_GRAMMAR_DIALOG) -#define SPELL_START_BODY 0 // body text area -#define SPELL_START_OTHER 1 // frame, footnote, header, footer -#define SPELL_START_DRAWTEXT 2 // started in a draw text object - struct SpellState { bool m_bInitialCall; @@ -71,7 +67,6 @@ struct SpellState bool m_bLostFocus; // restart and progress information - sal_uInt16 m_SpellStartPosition; bool m_bBodySpelled; // body already spelled bool m_bOtherSpelled; // frames, footnotes, headers and footers spelled bool m_bStartedInOther; // started the spelling inside of the _other_ area @@ -101,7 +96,6 @@ struct SpellState m_bInitialCall(true), m_bLockFocus(false), m_bLostFocus(false), - m_SpellStartPosition(SPELL_START_BODY), m_bBodySpelled(false), m_bOtherSpelled(false), m_bStartedInOther(false), @@ -226,7 +220,6 @@ svx::SpellPortions SwSpellDialogChildWindow::GetNextWrongSentence(bool bRecheck) } // determine if the selection is outside of the body text bOtherText = !(pWrtShell->GetFrameType(nullptr,true) & FrameTypeFlags::BODY); - m_pSpellState->m_SpellStartPosition = bOtherText ? SPELL_START_OTHER : SPELL_START_BODY; if(bOtherText) { m_pSpellState->pOtherCursor.reset( new SwPaM(*pWrtShell->GetCursor()->GetPoint()) ); @@ -250,7 +243,6 @@ svx::SpellPortions SwSpellDialogChildWindow::GetNextWrongSentence(bool bRecheck) else { SdrView* pSdrView = pWrtShell->GetDrawView(); - m_pSpellState->m_SpellStartPosition = SPELL_START_DRAWTEXT; m_pSpellState->m_pStartDrawing = pSdrView->GetMarkedObjectList().GetMark(0)->GetMarkedSdrObj(); OutlinerView* pOLV = pSdrView->GetTextEditOutlinerView(); // start checking at the top of the drawing object |