From e61e4e56994c22221dcc0e9f4c2cb62fd63ac823 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 18 Oct 2018 14:09:50 +0200 Subject: clang-tidy readability-misleading-indentation Change-Id: I4673fc7c694924b41d048a1918ddb8b0e0af1f79 Reviewed-on: https://gerrit.libreoffice.org/61935 Tested-by: Jenkins Reviewed-by: Noel Grandin --- .../source/extended/AccessibleGridControlBase.cxx | 18 +++++++++--------- accessibility/source/extended/accessiblelistbox.cxx | 2 +- .../source/extended/accessiblelistboxentry.cxx | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) (limited to 'accessibility') diff --git a/accessibility/source/extended/AccessibleGridControlBase.cxx b/accessibility/source/extended/AccessibleGridControlBase.cxx index daa93e64db65..dbf25022ca35 100644 --- a/accessibility/source/extended/AccessibleGridControlBase.cxx +++ b/accessibility/source/extended/AccessibleGridControlBase.cxx @@ -398,15 +398,15 @@ sal_Int32 SAL_CALL AccessibleGridControlBase::getForeground( ) { if ( pInst->IsControlForeground() ) nColor = pInst->GetControlForeground(); - else - { - vcl::Font aFont; - if ( pInst->IsControlFont() ) - aFont = pInst->GetControlFont(); else - aFont = pInst->GetFont(); - nColor = aFont.GetColor(); - } + { + vcl::Font aFont; + if ( pInst->IsControlFont() ) + aFont = pInst->GetControlFont(); + else + aFont = pInst->GetFont(); + nColor = aFont.GetColor(); + } } return sal_Int32(nColor); } @@ -422,7 +422,7 @@ sal_Int32 SAL_CALL AccessibleGridControlBase::getBackground( ) { if ( pInst->IsControlBackground() ) nColor = pInst->GetControlBackground(); - else + else nColor = pInst->GetBackground().GetColor(); } return sal_Int32(nColor); diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx index 0f194f0d404a..0ef5168141a5 100644 --- a/accessibility/source/extended/accessiblelistbox.cxx +++ b/accessibility/source/extended/accessiblelistbox.cxx @@ -384,7 +384,7 @@ namespace accessibility { if( bHasButtons ) nCase = 2; - else + else nCase = 3; } return nCase; diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index 943047213a1c..8e11b4587e10 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -385,7 +385,7 @@ namespace accessibility { if( bHasButtons ) nCase = 2; - else + else nCase = 3; } return nCase; -- cgit