diff options
author | Philipp Riemer <ruderphilipp@gmail.com> | 2013-06-09 00:46:42 +0200 |
---|---|---|
committer | Philipp Riemer <ruderphilipp@gmail.com> | 2013-06-09 00:56:41 +0200 |
commit | a3f62b536e7e9ba1ac8aedc112d6c7d7a28e2f61 (patch) | |
tree | c26f9fb34ca83f38092f52cf90b2b36a7e76e61a /sw/source | |
parent | 379bacf8efc133967f7d5899d3024c2f39f7fb95 (diff) |
adjusted code indentation for consistency
Change-Id: I0316e8753e440ff691e9c84f55aad8a6a7079652
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/edit/edglbldc.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/edit/editsh.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/edit/edlingu.cxx | 13 | ||||
-rw-r--r-- | sw/source/core/edit/ednumber.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/edit/edundo.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/edit/edws.cxx | 3 |
6 files changed, 13 insertions, 14 deletions
diff --git a/sw/source/core/edit/edglbldc.cxx b/sw/source/core/edit/edglbldc.cxx index b19b83938ec4..8a549c290403 100644 --- a/sw/source/core/edit/edglbldc.cxx +++ b/sw/source/core/edit/edglbldc.cxx @@ -69,7 +69,8 @@ sal_uInt16 SwEditShell::GetGlobalDocContent( SwGlblDocContents& rArr ) const SwGlblDocContent* pNew; switch( pSect->GetType() ) { - case TOX_HEADER_SECTION: break; // ignore + case TOX_HEADER_SECTION: + break; // ignore case TOX_CONTENT_SECTION: OSL_ENSURE( pSect->ISA( SwTOXBaseSection ), "no TOXBaseSection!" ); pNew = new SwGlblDocContent( (SwTOXBaseSection*)pSect ); diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx index 8e2dbed8f5fe..a13598aa0203 100644 --- a/sw/source/core/edit/editsh.cxx +++ b/sw/source/core/edit/editsh.cxx @@ -711,7 +711,7 @@ sal_uInt16 SwEditShell::GetINetAttrs( SwGetINetAttrs& rArr ) rArr.push_back( pNew ); } } - } + } } return rArr.size(); } diff --git a/sw/source/core/edit/edlingu.cxx b/sw/source/core/edit/edlingu.cxx index 4702b4ff213c..c72cf0201db5 100644 --- a/sw/source/core/edit/edlingu.cxx +++ b/sw/source/core/edit/edlingu.cxx @@ -900,7 +900,8 @@ uno::Reference< XSpellAlternatives > // don't determine the rectangle in the current line xub_StrLen nWordStart = (nBegin + nLeft) < nLineStart ? nLineStart : nBegin + nLeft; // take one less than the line end - otherwise the next line would be calculated - xub_StrLen nWordEnd = (nBegin + nLen - nLeft - nRight) > nLineEnd ? nLineEnd: (nBegin + nLen - nLeft - nRight); + xub_StrLen nWordEnd = (nBegin + nLen - nLeft - nRight) > nLineEnd + ? nLineEnd : (nBegin + nLen - nLeft - nRight); Push(); pCrsr->DeleteMark(); SwIndex& rContent = GetCrsr()->GetPoint()->nContent; @@ -1025,7 +1026,8 @@ bool SwEditShell::GetGrammarCorrection( // don't determine the rectangle in the current line xub_StrLen nWordStart = (nBegin + nLeft) < nLineStart ? nLineStart : nBegin + nLeft; // take one less than the line end - otherwise the next line would be calculated - xub_StrLen nWordEnd = (nBegin + nLen - nLeft - nRight) > nLineEnd ? nLineEnd: (nBegin + nLen - nLeft - nRight); + xub_StrLen nWordEnd = (nBegin + nLen - nLeft - nRight) > nLineEnd + ? nLineEnd : (nBegin + nLen - nLeft - nRight); Push(); pCrsr->DeleteMark(); SwIndex& rContent = GetCrsr()->GetPoint()->nContent; @@ -1072,8 +1074,7 @@ void SwEditShell::PutSpellingToSentenceStart() pSpellIter->ToSentenceStart(); } -static sal_uInt32 lcl_CountRedlines( - const ::svx::SpellPortions& rLastPortions) +static sal_uInt32 lcl_CountRedlines(const ::svx::SpellPortions& rLastPortions) { sal_uInt32 nRet = 0; SpellPortions::const_iterator aIter = rLastPortions.begin(); @@ -1385,8 +1386,8 @@ bool SwSpellIter::SpellSentence(::svx::SpellPortions& rPortions, bool bIsGrammar pCrsr->SetMark(); --GetCrsrCnt(); } - } - while ( bGoOn ); + } while ( bGoOn ); + if(xSpellRet.is() || bGrammarErrorFound) { // an error has been found diff --git a/sw/source/core/edit/ednumber.cxx b/sw/source/core/edit/ednumber.cxx index fe5d91a3909e..5d3afe013385 100644 --- a/sw/source/core/edit/ednumber.cxx +++ b/sw/source/core/edit/ednumber.cxx @@ -443,8 +443,7 @@ void SwEditShell::GetCurrentOutlineLevels( sal_uInt8& rUpper, sal_uInt8& rLower aCrsr.SetMark(); if( pCrsr->HasMark() ) *aCrsr.GetPoint() = *pCrsr->End(); - GetDoc()->GotoNextNum( *aCrsr.GetPoint(), false, - &rUpper, &rLower ); + GetDoc()->GotoNextNum( *aCrsr.GetPoint(), false, &rUpper, &rLower ); } bool SwEditShell::MoveNumParas( bool bUpperLower, bool bUpperLeft ) diff --git a/sw/source/core/edit/edundo.cxx b/sw/source/core/edit/edundo.cxx index 79fc76a1fa28..bd27446a374f 100644 --- a/sw/source/core/edit/edundo.cxx +++ b/sw/source/core/edit/edundo.cxx @@ -43,8 +43,7 @@ bool SwEditShell::CursorsLocked() const return GetDoc()->GetDocShell()->GetModel()->hasControllersLocked(); } -void -SwEditShell::HandleUndoRedoContext(::sw::UndoRedoContext & rContext) +void SwEditShell::HandleUndoRedoContext(::sw::UndoRedoContext & rContext) { // do nothing if somebody has locked controllers! if (CursorsLocked()) diff --git a/sw/source/core/edit/edws.cxx b/sw/source/core/edit/edws.cxx index acf268eae8f4..e006f56176f5 100644 --- a/sw/source/core/edit/edws.cxx +++ b/sw/source/core/edit/edws.cxx @@ -228,8 +228,7 @@ SwUndoId SwEditShell::StartUndo( SwUndoId eUndoId, * @param eUndoId ID of the undo container * @param pRewriter ? */ -SwUndoId SwEditShell::EndUndo(SwUndoId eUndoId, - const SwRewriter *pRewriter) +SwUndoId SwEditShell::EndUndo(SwUndoId eUndoId, const SwRewriter *pRewriter) { return GetDoc()->GetIDocumentUndoRedo().EndUndo(eUndoId, pRewriter); } bool SwEditShell::GetLastUndoInfo(OUString *const o_pStr, |