diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-08 09:27:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-08 10:01:05 +0100 |
commit | 587ac01f97d3fd63638bbb1e4b165b49140bfc90 (patch) | |
tree | 020c6d10d04ca8cc3466315e23ad6100a689dca6 /basctl | |
parent | bd824be5371d5e4d6e49b72ccf01897ba301c55e (diff) |
loplugin:indentation in basctl..bridges
Change-Id: Ie4e27466c4258c6f774a3ebb82ec3a88c28fd753
Reviewed-on: https://gerrit.libreoffice.org/67525
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/moduldlg.cxx | 12 | ||||
-rw-r--r-- | basctl/source/dlged/dlged.cxx | 18 | ||||
-rw-r--r-- | basctl/source/dlged/dlgedobj.cxx | 12 |
3 files changed, 21 insertions, 21 deletions
diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx index d1455ff99a70..012651228308 100644 --- a/basctl/source/basicide/moduldlg.cxx +++ b/basctl/source/basicide/moduldlg.cxx @@ -978,9 +978,9 @@ SbModule* createModImpl(weld::Window* pWin, const ScriptDocument& rDocument, rDocument.createModule( aLibName, aModName, bMain, sModuleCode ); BasicManager* pBasMgr = rDocument.getBasicManager(); StarBASIC* pBasic = pBasMgr? pBasMgr->GetLib( aLibName ) : nullptr; - if ( pBasic ) - pModule = pBasic->FindModule( aModName ); - SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, rDocument, aLibName, aModName, TYPE_MODULE ); + if ( pBasic ) + pModule = pBasic->FindModule( aModName ); + SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, rDocument, aLibName, aModName, TYPE_MODULE ); if (SfxDispatcher* pDispatcher = GetDispatcher()) { pDispatcher->ExecuteList( SID_BASICIDE_SBXINSERTED, @@ -1074,9 +1074,9 @@ SbModule* createModImpl(weld::Window* pWin, const ScriptDocument& rDocument, rDocument.createModule( aLibName, aModName, bMain, sModuleCode ); BasicManager* pBasMgr = rDocument.getBasicManager(); StarBASIC* pBasic = pBasMgr? pBasMgr->GetLib( aLibName ) : nullptr; - if ( pBasic ) - pModule = pBasic->FindModule( aModName ); - SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, rDocument, aLibName, aModName, TYPE_MODULE ); + if ( pBasic ) + pModule = pBasic->FindModule( aModName ); + SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, rDocument, aLibName, aModName, TYPE_MODULE ); if (SfxDispatcher* pDispatcher = GetDispatcher()) { pDispatcher->ExecuteList( SID_BASICIDE_SBXINSERTED, diff --git a/basctl/source/dlged/dlged.cxx b/basctl/source/dlged/dlged.cxx index bee654fae060..b4258194464a 100644 --- a/basctl/source/dlged/dlged.cxx +++ b/basctl/source/dlged/dlged.cxx @@ -378,7 +378,7 @@ void DlgEditor::SetDialog( const uno::Reference< container::XNameContainer >& xU sal_Int16 nTabIndex = -1; Any aCtrl = xNameAcc->getByName( aName ); Reference< css::beans::XPropertySet > xPSet; - aCtrl >>= xPSet; + aCtrl >>= xPSet; if ( xPSet.is() ) xPSet->getPropertyValue( DLGED_PROP_TABINDEX ) >>= nTabIndex; @@ -680,8 +680,8 @@ void DlgEditor::Copy() Reference< container::XNameAccess > xNAcc( xClipDialogModel, UNO_QUERY ); if ( xNAcc.is() ) { - Sequence< OUString > aNames = xNAcc->getElementNames(); - const OUString* pNames = aNames.getConstArray(); + Sequence< OUString > aNames = xNAcc->getElementNames(); + const OUString* pNames = aNames.getConstArray(); sal_uInt32 nCtrls = aNames.getLength(); for ( sal_uInt32 n = 0; n < nCtrls; n++ ) @@ -713,7 +713,7 @@ void DlgEditor::Copy() // clone control model Reference< util::XCloneable > xCtrl; - aCtrl >>= xCtrl; + aCtrl >>= xCtrl; Reference< util::XCloneable > xNewCtrl = xCtrl->createClone(); Any aNewCtrl; aNewCtrl <<= xNewCtrl; @@ -907,8 +907,8 @@ void DlgEditor::Paste() Reference< css::container::XNameAccess > xNameAcc( xClipDialogModel, UNO_QUERY ); if ( xNameAcc.is() ) { - Sequence< OUString > aNames = xNameAcc->getElementNames(); - const OUString* pNames = aNames.getConstArray(); + Sequence< OUString > aNames = xNameAcc->getElementNames(); + const OUString* pNames = aNames.getConstArray(); sal_uInt32 nCtrls = aNames.getLength(); Reference< resource::XStringResourcePersistence > xStringResourcePersistence; @@ -919,9 +919,9 @@ void DlgEditor::Paste() } for( sal_uInt32 n = 0; n < nCtrls; n++ ) { - Any aA = xNameAcc->getByName( pNames[n] ); + Any aA = xNameAcc->getByName( pNames[n] ); Reference< css::awt::XControlModel > xCM; - aA >>= xCM; + aA >>= xCM; // clone the control model Reference< util::XCloneable > xClone( xCM, uno::UNO_QUERY ); @@ -939,7 +939,7 @@ void DlgEditor::Paste() // set tabindex Reference< container::XNameAccess > xNA( m_xUnoControlDialogModel , UNO_QUERY ); - Sequence< OUString > aNames_ = xNA->getElementNames(); + Sequence< OUString > aNames_ = xNA->getElementNames(); xPSet->setPropertyValue( DLGED_PROP_TABINDEX, Any(static_cast<sal_Int16>(aNames_.getLength())) ); if( bLocalized ) diff --git a/basctl/source/dlged/dlgedobj.cxx b/basctl/source/dlged/dlgedobj.cxx index 2ef4ff99a78f..29aabd49a6d2 100644 --- a/basctl/source/dlged/dlgedobj.cxx +++ b/basctl/source/dlged/dlgedobj.cxx @@ -556,7 +556,7 @@ void DlgEdObj::TabIndexChange( const beans::PropertyChangeEvent& evt ) sal_Int16 nTabIndex = -1; Any aCtrl = xNameAcc->getByName( aName ); Reference< beans::XPropertySet > xPSet; - aCtrl >>= xPSet; + aCtrl >>= xPSet; if ( xPSet.is() && xPSet == Reference< beans::XPropertySet >( evt.Source, UNO_QUERY ) ) evt.OldValue >>= nTabIndex; else if ( xPSet.is() ) @@ -594,7 +594,7 @@ void DlgEdObj::TabIndexChange( const beans::PropertyChangeEvent& evt ) { Any aCtrl = xNameAcc->getByName( aNameList[i] ); Reference< beans::XPropertySet > xPSet; - aCtrl >>= xPSet; + aCtrl >>= xPSet; if ( xPSet.is() ) { assert(i >= SAL_MIN_INT16); @@ -873,7 +873,7 @@ void DlgEdObj::clonedFrom(const DlgEdObj* _pSource) if ( xCont.is() ) { // set tabindex - Sequence< OUString > aNames = xCont->getElementNames(); + Sequence< OUString > aNames = xCont->getElementNames(); xPSet->setPropertyValue( DLGED_PROP_TABINDEX, Any(static_cast<sal_Int16>(aNames.getLength())) ); // insert control model in dialog model @@ -1013,7 +1013,7 @@ void DlgEdObj::SetDefaults() if ( xCont.is() ) { // set tabindex - Sequence< OUString > aNames = xCont->getElementNames(); + Sequence< OUString > aNames = xCont->getElementNames(); uno::Any aTabIndex; aTabIndex <<= static_cast<sal_Int16>(aNames.getLength()); xPSet->setPropertyValue( DLGED_PROP_TABINDEX, aTabIndex ); @@ -1436,7 +1436,7 @@ void DlgEdForm::UpdateTabIndices() sal_Int16 nTabIndex = -1; Any aCtrl = xNameAcc->getByName( aName ); Reference< css::beans::XPropertySet > xPSet; - aCtrl >>= xPSet; + aCtrl >>= xPSet; if ( xPSet.is() ) xPSet->getPropertyValue( DLGED_PROP_TABINDEX ) >>= nTabIndex; @@ -1450,7 +1450,7 @@ void DlgEdForm::UpdateTabIndices() { Any aCtrl = xNameAcc->getByName( indexToName.second ); Reference< beans::XPropertySet > xPSet; - aCtrl >>= xPSet; + aCtrl >>= xPSet; if ( xPSet.is() ) { xPSet->setPropertyValue( DLGED_PROP_TABINDEX, Any(nNewTabIndex) ); |