diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-10-03 10:55:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-10-03 12:51:27 +0100 |
commit | 1bceb4e6aeaea138fac5ea9b3dfb8710babb3d43 (patch) | |
tree | d9ff8531fb6bac0048ed21e5bd9532f9b48d6f39 /vcl | |
parent | 6534421e88c1edd245edfd4ca70dd4e6aa8be8e9 (diff) |
fix indent
Change-Id: Ia1bc9fe3c2c3833e36ec6fb9636856049acf03ec
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/syswin.cxx | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx index c4d5017ef950..cb45ea4bd56e 100644 --- a/vcl/source/window/syswin.cxx +++ b/vcl/source/window/syswin.cxx @@ -138,31 +138,31 @@ bool Accelerator::ToggleMnemonicsOnHierarchy(const CommandEvent& rCEvent, vcl::W vcl::Window *pGetChild = firstLogicalChildOfParent(pWindow); while (pGetChild) { - if ( pGetChild->GetType() == WINDOW_TABCONTROL ) + if (pGetChild->GetType() == WINDOW_TABCONTROL) { - // find currently shown tab page - TabControl* pTabControl = static_cast<TabControl*>( pGetChild ); - TabPage* pTabPage = pTabControl->GetTabPage( pTabControl->GetCurPageId() ); - vcl::Window* pTabPageChild = firstLogicalChildOfParent( pTabPage ); - - // and go through its children - while ( pTabPageChild ) - { - ImplHandleControlAccelerator(pTabPageChild, bShowAccel); - pTabPageChild = nextLogicalChildOfParent(pTabPage, pTabPageChild); - } + // find currently shown tab page + TabControl* pTabControl = static_cast<TabControl*>( pGetChild ); + TabPage* pTabPage = pTabControl->GetTabPage( pTabControl->GetCurPageId() ); + vcl::Window* pTabPageChild = firstLogicalChildOfParent( pTabPage ); + + // and go through its children + while ( pTabPageChild ) + { + ImplHandleControlAccelerator(pTabPageChild, bShowAccel); + pTabPageChild = nextLogicalChildOfParent(pTabPage, pTabPageChild); + } } - else if ( pGetChild->GetType() == WINDOW_TABPAGE ) + else if (pGetChild->GetType() == WINDOW_TABPAGE) { - // bare tabpage without tabcontrol parent (options dialog) - vcl::Window* pTabPageChild = firstLogicalChildOfParent( pGetChild ); - - // and go through its children - while ( pTabPageChild ) - { - ImplHandleControlAccelerator(pTabPageChild, bShowAccel); - pTabPageChild = nextLogicalChildOfParent(pGetChild, pTabPageChild); - } + // bare tabpage without tabcontrol parent (options dialog) + vcl::Window* pTabPageChild = firstLogicalChildOfParent( pGetChild ); + + // and go through its children + while ( pTabPageChild ) + { + ImplHandleControlAccelerator(pTabPageChild, bShowAccel); + pTabPageChild = nextLogicalChildOfParent(pGetChild, pTabPageChild); + } } ImplHandleControlAccelerator( pGetChild, bShowAccel ); |