diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-08 13:56:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-10 11:18:42 +0100 |
commit | 16f153228461595e3ad82c3502fcb6b07cfe6f2a (patch) | |
tree | 2b2d56121a39adfd0d85165b1e031becdb32ad7e | |
parent | f68f3b98cc47868cda3a75298a211c5735c0a4e7 (diff) |
loplugin:indentation in svtools
Change-Id: I5535acdf828f78d69ba8f6b4c990f9139ed3319b
Reviewed-on: https://gerrit.libreoffice.org/67566
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | svtools/qa/unit/testHtmlWriter.cxx | 4 | ||||
-rw-r--r-- | svtools/source/brwbox/editbrowsebox2.cxx | 10 | ||||
-rw-r--r-- | svtools/source/contnr/imivctl1.cxx | 2 | ||||
-rw-r--r-- | svtools/source/control/accessibleruler.cxx | 8 | ||||
-rw-r--r-- | svtools/source/control/roadmap.cxx | 2 | ||||
-rw-r--r-- | svtools/source/dialogs/wizardmachine.cxx | 4 | ||||
-rw-r--r-- | svtools/source/hatchwindow/documentcloser.cxx | 2 | ||||
-rw-r--r-- | svtools/source/misc/embedhlp.cxx | 4 | ||||
-rw-r--r-- | svtools/source/misc/templatefoldercache.cxx | 2 | ||||
-rw-r--r-- | svtools/source/svrtf/parrtf.cxx | 8 | ||||
-rw-r--r-- | svtools/source/uno/unoiface.cxx | 6 |
11 files changed, 26 insertions, 26 deletions
diff --git a/svtools/qa/unit/testHtmlWriter.cxx b/svtools/qa/unit/testHtmlWriter.cxx index e1ef5650c8dc..ef207049c32c 100644 --- a/svtools/qa/unit/testHtmlWriter.cxx +++ b/svtools/qa/unit/testHtmlWriter.cxx @@ -152,8 +152,8 @@ void Test::testNested() HtmlWriter aHtml(aStream); aHtml.prettyPrint(false); aHtml.start("abc"); - aHtml.start("xyz"); - aHtml.end(); + aHtml.start("xyz"); + aHtml.end(); aHtml.end(); OString aString = extractFromStream(aStream); diff --git a/svtools/source/brwbox/editbrowsebox2.cxx b/svtools/source/brwbox/editbrowsebox2.cxx index e4e71e894c0a..6b18a2d08bbf 100644 --- a/svtools/source/brwbox/editbrowsebox2.cxx +++ b/svtools/source/brwbox/editbrowsebox2.cxx @@ -72,12 +72,12 @@ void EditBrowseBox::implCreateActiveAccessible( ) if ( !(!m_aImpl->m_xActiveCell.is() && IsEditing()) ) return; - Reference< XAccessible > xCont = aController->GetWindow().GetAccessible(); - Reference< XAccessible > xMy = GetAccessible(); - if ( !(xMy.is() && xCont.is()) ) + Reference< XAccessible > xCont = aController->GetWindow().GetAccessible(); + Reference< XAccessible > xMy = GetAccessible(); + if ( !(xMy.is() && xCont.is()) ) return; - m_aImpl->m_xActiveCell = getAccessibleFactory().createEditBrowseBoxTableCellAccess( + m_aImpl->m_xActiveCell = getAccessibleFactory().createEditBrowseBoxTableCellAccess( xMy, // parent accessible xCont, // control accessible VCLUnoHelper::GetInterface( &aController->GetWindow() ), // focus window (for notifications) @@ -86,7 +86,7 @@ void EditBrowseBox::implCreateActiveAccessible( ) GetColumnPos( GetCurColumnId() ) ); - commitBrowseBoxEvent( CHILD, makeAny( m_aImpl->m_xActiveCell ), Any() ); + commitBrowseBoxEvent( CHILD, makeAny( m_aImpl->m_xActiveCell ), Any() ); } diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index becd6476ef44..d9a6f91693d7 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -520,7 +520,7 @@ void SvxIconChoiceCtrl_Impl::ImpArrange( bool bKeepPredecessors ) RecalcAllBoundingRectsSmart(); // TODO: the invalidation in the detail view should be more intelligent //if( !(nWinBits & WB_DETAILS )) - pView->Invalidate( InvalidateFlags::NoChildren ); + pView->Invalidate( InvalidateFlags::NoChildren ); nFlags &= ~IconChoiceFlags::Arranging; if( (nWinBits & WB_SMART_ARRANGE) && aCurOutputArea.TopLeft() != aEmptyPoint ) { diff --git a/svtools/source/control/accessibleruler.cxx b/svtools/source/control/accessibleruler.cxx index 77fd6ae87c44..b41aedd7f575 100644 --- a/svtools/source/control/accessibleruler.cxx +++ b/svtools/source/control/accessibleruler.cxx @@ -167,11 +167,11 @@ sal_Int32 SAL_CALL SvtRulerAccessible::getAccessibleIndexInParent() return i; } } - } + } - // Return -1 to indicate that this object's parent does not know about the - // object. - return -1; + // Return -1 to indicate that this object's parent does not know about the + // object. + return -1; } sal_Int16 SAL_CALL SvtRulerAccessible::getAccessibleRole() diff --git a/svtools/source/control/roadmap.cxx b/svtools/source/control/roadmap.cxx index 66c4508a9183..27adbd928705 100644 --- a/svtools/source/control/roadmap.cxx +++ b/svtools/source/control/roadmap.cxx @@ -779,7 +779,7 @@ void RoadmapItem::ImplUpdatePosSize() // position and size both controls Size aIDSize( nIDWidth, aDescriptionSize.Height() ); - mpID->SetSizePixel( aIDSize ); + mpID->SetSizePixel( aIDSize ); Point aIDPos = mpID->GetPosPixel(); mpDescription->SetPosPixel( Point( aIDPos.X() + nIDWidth, aIDPos.Y() ) ); diff --git a/svtools/source/dialogs/wizardmachine.cxx b/svtools/source/dialogs/wizardmachine.cxx index 2f7cf48a8af3..54c830c42507 100644 --- a/svtools/source/dialogs/wizardmachine.cxx +++ b/svtools/source/dialogs/wizardmachine.cxx @@ -669,14 +669,14 @@ namespace svt void OWizardMachine::suspendTraveling( AccessGuard ) { DBG_ASSERT( !m_pImpl->m_bTravelingSuspended, "OWizardMachine::suspendTraveling: already suspended!" ); - m_pImpl->m_bTravelingSuspended = true; + m_pImpl->m_bTravelingSuspended = true; } void OWizardMachine::resumeTraveling( AccessGuard ) { DBG_ASSERT( m_pImpl->m_bTravelingSuspended, "OWizardMachine::resumeTraveling: nothing to resume!" ); - m_pImpl->m_bTravelingSuspended = false; + m_pImpl->m_bTravelingSuspended = false; } diff --git a/svtools/source/hatchwindow/documentcloser.cxx b/svtools/source/hatchwindow/documentcloser.cxx index ed064b3d4f76..3316efd32a42 100644 --- a/svtools/source/hatchwindow/documentcloser.cxx +++ b/svtools/source/hatchwindow/documentcloser.cxx @@ -171,7 +171,7 @@ void SAL_CALL ODocumentCloser::dispose() if ( m_bDisposed ) throw lang::DisposedException(); - lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >(this) ); + lang::EventObject aSource( static_cast< ::cppu::OWeakObject* >(this) ); if ( m_pListenersContainer ) m_pListenersContainer->disposeAndClear( aSource ); diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx index c66291d79f81..9d6622e5b0a5 100644 --- a/svtools/source/misc/embedhlp.cxx +++ b/svtools/source/misc/embedhlp.cxx @@ -780,8 +780,8 @@ void EmbeddedObjectRef::SetGraphicToContainer( const Graphic& rGraphic, { aStream.Seek( 0 ); - uno::Reference < io::XInputStream > xStream = new ::utl::OSeekableInputStreamWrapper( aStream ); - aContainer.InsertGraphicStream( xStream, aName, aMediaType ); + uno::Reference < io::XInputStream > xStream = new ::utl::OSeekableInputStreamWrapper( aStream ); + aContainer.InsertGraphicStream( xStream, aName, aMediaType ); } else OSL_FAIL( "Export of graphic is failed!" ); diff --git a/svtools/source/misc/templatefoldercache.cxx b/svtools/source/misc/templatefoldercache.cxx index ac997716d098..87bf5694875c 100644 --- a/svtools/source/misc/templatefoldercache.cxx +++ b/svtools/source/misc/templatefoldercache.cxx @@ -574,7 +574,7 @@ namespace svt // is it a folder? if ( xRow->getBoolean( 4 ) && !xRow->wasNull() ) { // yes -> step down - ConstFolderIterator aNextLevelRoot = _rxRoot->end(); + ConstFolderIterator aNextLevelRoot = _rxRoot->end(); --aNextLevelRoot; implReadFolder( *aNextLevelRoot ); } diff --git a/svtools/source/svrtf/parrtf.cxx b/svtools/source/svrtf/parrtf.cxx index c97625d67d58..e3fae1a8c1c2 100644 --- a/svtools/source/svrtf/parrtf.cxx +++ b/svtools/source/svrtf/parrtf.cxx @@ -535,10 +535,10 @@ short SvRTFParser::_inSkipGroup=0; void SvRTFParser::SkipGroup() { -short nBrackets=1; -if (_inSkipGroup>0) - return; -_inSkipGroup++; + short nBrackets=1; + if (_inSkipGroup>0) + return; + _inSkipGroup++; //#i16185# fecking \bin keyword do { diff --git a/svtools/source/uno/unoiface.cxx b/svtools/source/uno/unoiface.cxx index a7e991683938..26da30676da4 100644 --- a/svtools/source/uno/unoiface.cxx +++ b/svtools/source/uno/unoiface.cxx @@ -1552,7 +1552,7 @@ void SVTXRoadmap::setProperty( const OUString& PropertyName, const css::uno::Any case BASEPROPERTY_ACTIVATED: { - bool b = false; + bool b = false; Value >>= b; pField->SetRoadmapInteractive( b); } @@ -1560,7 +1560,7 @@ void SVTXRoadmap::setProperty( const OUString& PropertyName, const css::uno::Any case BASEPROPERTY_CURRENTITEMID: { - sal_Int32 nId = 0; + sal_Int32 nId = 0; Value >>= nId; pField->SelectRoadmapItemByID( static_cast<RoadmapTypes::ItemId>(nId) ); } @@ -1568,7 +1568,7 @@ void SVTXRoadmap::setProperty( const OUString& PropertyName, const css::uno::Any case BASEPROPERTY_TEXT: { - OUString aStr; + OUString aStr; Value >>= aStr; pField->SetText( aStr ); pField->Invalidate(); |