diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-02-25 17:52:23 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-02-25 17:59:40 +0100 |
commit | 4f4e4e40f5b79a4dba46ffedd11cafa7beb08a87 (patch) | |
tree | c158b93b176b084eac024c0e3b5e94e18911f50f /svtools/source | |
parent | remove duplicate line (diff) | |
download | core-4f4e4e40f5b79a4dba46ffedd11cafa7beb08a87.tar.gz core-4f4e4e40f5b79a4dba46ffedd11cafa7beb08a87.zip |
loplugin: improve indentation
Change-Id: Idb847766d93dc222d6c55889616da21eeac212ee
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/dialogs/ServerDetailsControls.cxx | 4 | ||||
-rw-r--r-- | svtools/source/misc/acceleratorexecute.cxx | 2 | ||||
-rw-r--r-- | svtools/source/toolpanel/tabbargeometry.cxx | 6 | ||||
-rw-r--r-- | svtools/source/toolpanel/toolpaneldeck.cxx | 6 |
4 files changed, 7 insertions, 11 deletions
diff --git a/svtools/source/dialogs/ServerDetailsControls.cxx b/svtools/source/dialogs/ServerDetailsControls.cxx index 3bdae1bdc8c0..a9e3e4dd9060 100644 --- a/svtools/source/dialogs/ServerDetailsControls.cxx +++ b/svtools/source/dialogs/ServerDetailsControls.cxx @@ -126,7 +126,7 @@ INetURLObject HostDetailsContainer::getUrl( ) if ( !sPath.isEmpty( ) ) if ( sPath.indexOf( '/' ) != 0 ) sUrl += "/"; - sUrl += sPath; + sUrl += sPath; } return INetURLObject( sUrl ); @@ -235,7 +235,7 @@ INetURLObject SmbDetailsContainer::getUrl( ) if ( !sPath.isEmpty( ) ) if ( sPath.indexOf( '/' ) != 0 ) sUrl += "/"; - sUrl += sPath; + sUrl += sPath; } return INetURLObject( sUrl ); diff --git a/svtools/source/misc/acceleratorexecute.cxx b/svtools/source/misc/acceleratorexecute.cxx index d68fc58bfff7..6bd32c9e3e89 100644 --- a/svtools/source/misc/acceleratorexecute.cxx +++ b/svtools/source/misc/acceleratorexecute.cxx @@ -224,7 +224,7 @@ css::awt::KeyEvent AcceleratorExecute::st_VCLKey2AWTKey(const KeyCode& aVCLKey) aAWTKey.Modifiers |= css::awt::KeyModifier::MOD1; if (aVCLKey.IsMod2()) aAWTKey.Modifiers |= css::awt::KeyModifier::MOD2; - if (aVCLKey.IsMod3()) + if (aVCLKey.IsMod3()) aAWTKey.Modifiers |= css::awt::KeyModifier::MOD3; return aAWTKey; } diff --git a/svtools/source/toolpanel/tabbargeometry.cxx b/svtools/source/toolpanel/tabbargeometry.cxx index 0eb4fddd1b12..43036233ed90 100644 --- a/svtools/source/toolpanel/tabbargeometry.cxx +++ b/svtools/source/toolpanel/tabbargeometry.cxx @@ -141,8 +141,7 @@ namespace svt lcl_mirrorHorizontally( aReference, aResult ); } } - else - if ( i_eTargetAlignment == TABS_BOTTOM ) + else if ( i_eTargetAlignment == TABS_BOTTOM ) { lcl_mirrorVertically( m_aReference, aResult ); } @@ -169,8 +168,7 @@ namespace svt lcl_rotate( aReference, aResult, false ); } - else - if ( i_eTargetAlignment == TABS_BOTTOM ) + else if ( i_eTargetAlignment == TABS_BOTTOM ) { lcl_mirrorVertically( m_aReference, aResult ); } diff --git a/svtools/source/toolpanel/toolpaneldeck.cxx b/svtools/source/toolpanel/toolpaneldeck.cxx index b07e0de8c773..957e47432bd3 100644 --- a/svtools/source/toolpanel/toolpaneldeck.cxx +++ b/svtools/source/toolpanel/toolpaneldeck.cxx @@ -252,15 +252,13 @@ namespace svt case ACTION_ACTIVATE_PREV: if ( !aCurrentPanel && ( nPanelCount > 0 ) ) aActivatePanel = nPanelCount - 1; - else - if ( !!aCurrentPanel && ( *aCurrentPanel > 0 ) ) + else if ( !!aCurrentPanel && ( *aCurrentPanel > 0 ) ) aActivatePanel = *aCurrentPanel - 1; break; case ACTION_ACTIVATE_NEXT: if ( !aCurrentPanel && ( nPanelCount > 0 ) ) aActivatePanel = 0; - else - if ( !!aCurrentPanel && ( *aCurrentPanel < nPanelCount - 1 ) ) + else if ( !!aCurrentPanel && ( *aCurrentPanel < nPanelCount - 1 ) ) aActivatePanel = *aCurrentPanel + 1; break; case ACTION_ACTIVATE_LAST: |