diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-08 13:56:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-10 11:21:00 +0100 |
commit | 9f40107620316fd04e1fe3669ed7c3a5c2b62eb3 (patch) | |
tree | b03eab82b776167361590667251deabaee3873e9 /sw/source/uibase/shells | |
parent | 12b584e4a9695a7516f239cd33950656212ed0c8 (diff) |
loplugin:indentation in sw
Change-Id: I4936284bff568b6bb47e5df3821f4ddd78260e92
Reviewed-on: https://gerrit.libreoffice.org/67568
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/shells')
-rw-r--r-- | sw/source/uibase/shells/annotsh.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/drformsh.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/drwtxtsh.cxx | 24 | ||||
-rw-r--r-- | sw/source/uibase/shells/grfshex.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/textdrw.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/textsh.cxx | 6 | ||||
-rw-r--r-- | sw/source/uibase/shells/txtattr.cxx | 2 |
7 files changed, 20 insertions, 20 deletions
diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx index 5b14408bf170..6bc570387af3 100644 --- a/sw/source/uibase/shells/annotsh.cxx +++ b/sw/source/uibase/shells/annotsh.cxx @@ -503,7 +503,7 @@ void SwAnnotationShell::Exec( SfxRequest &rReq ) } else aNewAttr.Put(*pArgs); - break; + break; } case SID_PARA_DLG: { diff --git a/sw/source/uibase/shells/drformsh.cxx b/sw/source/uibase/shells/drformsh.cxx index b5de83ed9218..f0a3cc3d31b0 100644 --- a/sw/source/uibase/shells/drformsh.cxx +++ b/sw/source/uibase/shells/drformsh.cxx @@ -188,7 +188,7 @@ void SwDrawFormShell::GetState(SfxItemSet& rSet) uno::Reference< beans::XPropertySetInfo > xInfo = xPropSet->getPropertySetInfo(); if(xInfo->hasPropertyByName( "ButtonType" )) { - form::FormButtonType eButtonType = form::FormButtonType_URL; + form::FormButtonType eButtonType = form::FormButtonType_URL; aTmp = xPropSet->getPropertyValue( "ButtonType" ); if( aTmp >>= eButtonType ) { diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx index 5a13c7a1f5ba..f839e71615cf 100644 --- a/sw/source/uibase/shells/drwtxtsh.cxx +++ b/sw/source/uibase/shells/drwtxtsh.cxx @@ -384,22 +384,22 @@ void SwDrawTextShell::ExecDraw(SfxRequest &rReq) } break; case SID_CHARMAP: - { // Insert special character - InsertSymbol(rReq); - break; - } - case FN_INSERT_STRING: - { + { // Insert special character + InsertSymbol(rReq); + break; + } + case FN_INSERT_STRING: + { const SfxItemSet *pNewAttrs = rReq.GetArgs(); - sal_uInt16 nSlot = rReq.GetSlot(); + sal_uInt16 nSlot = rReq.GetSlot(); const SfxPoolItem* pItem = nullptr; - if(pNewAttrs) + if(pNewAttrs) { - pNewAttrs->GetItemState(nSlot, false, &pItem ); - pOLV->InsertText(static_cast<const SfxStringItem *>(pItem)->GetValue()); + pNewAttrs->GetItemState(nSlot, false, &pItem ); + pOLV->InsertText(static_cast<const SfxStringItem *>(pItem)->GetValue()); } - break; - } + break; + } case SID_SELECTALL: { diff --git a/sw/source/uibase/shells/grfshex.cxx b/sw/source/uibase/shells/grfshex.cxx index ea73b2032ecd..95237f233af4 100644 --- a/sw/source/uibase/shells/grfshex.cxx +++ b/sw/source/uibase/shells/grfshex.cxx @@ -94,7 +94,7 @@ bool SwTextShell::InsertMediaDlg( SfxRequest const & rReq ) rSh.MakeDrawView(); Size aDocSz( rSh.GetDocSize() ); - const SwRect& rVisArea = rSh.VisArea(); + const SwRect& rVisArea = rSh.VisArea(); Point aPos( rVisArea.Center() ); Size aSize; diff --git a/sw/source/uibase/shells/textdrw.cxx b/sw/source/uibase/shells/textdrw.cxx index 13e27d1a162c..c495e9b1b7aa 100644 --- a/sw/source/uibase/shells/textdrw.cxx +++ b/sw/source/uibase/shells/textdrw.cxx @@ -61,7 +61,7 @@ void SwBaseShell::InsertURLButton(const OUString& rURL, const OUString& rTarget, if (rSh.BeginCreate(OBJ_FM_BUTTON, SdrInventor::FmForm, aStartPos)) { pSdrView->SetOrtho(false); - Size aSz(GetView().GetEditWin().PixelToLogic(Size(140, 20))); + Size aSz(GetView().GetEditWin().PixelToLogic(Size(140, 20))); Point aEndPos(aSz.Width(), aSz.Height()); rSh.MoveCreate(aStartPos + aEndPos); diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx index 2b9603e28fca..58e9648c9c7d 100644 --- a/sw/source/uibase/shells/textsh.cxx +++ b/sw/source/uibase/shells/textsh.cxx @@ -499,9 +499,9 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) { //FN_INSERT_FRAME sal_uInt16 nAnchor = static_cast<sal_uInt16>(aMgr.GetAnchor()); - rReq.AppendItem(SfxUInt16Item(nSlot, nAnchor)); - rReq.AppendItem(SfxPointItem(FN_PARAM_1, rShell.GetObjAbsPos())); - rReq.AppendItem(SvxSizeItem(FN_PARAM_2, rShell.GetObjSize())); + rReq.AppendItem(SfxUInt16Item(nSlot, nAnchor)); + rReq.AppendItem(SfxPointItem(FN_PARAM_1, rShell.GetObjAbsPos())); + rReq.AppendItem(SvxSizeItem(FN_PARAM_2, rShell.GetObjSize())); rReq.Done(); } diff --git a/sw/source/uibase/shells/txtattr.cxx b/sw/source/uibase/shells/txtattr.cxx index 0520e65184b4..1c77242e1af8 100644 --- a/sw/source/uibase/shells/txtattr.cxx +++ b/sw/source/uibase/shells/txtattr.cxx @@ -63,7 +63,7 @@ void SwTextShell::ExecCharAttr(SfxRequest &rReq) { SwWrtShell &rSh = GetShell(); const SfxItemSet *pArgs = rReq.GetArgs(); - int eState = STATE_TOGGLE; + int eState = STATE_TOGGLE; sal_uInt16 nWhich = rReq.GetSlot(); if(pArgs ) |