summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-03 13:41:45 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-03 17:14:15 +0100
commitecf00403376d13355fcf6fb7cd36b3500f19fc69 (patch)
tree96d76c3d9e9514a6f08e51c1fe3ddcdcb6a1060d /framework
parent29c8b9a7c9a4d62b7df2e70b71beec488aae5722 (diff)
loplugin: improve indentation
Change-Id: If0ddaa8fd7cfaf4df8589422cb50ce37f1be2ad1
Diffstat (limited to 'framework')
-rw-r--r--framework/source/dispatch/closedispatcher.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/framework/source/dispatch/closedispatcher.cxx b/framework/source/dispatch/closedispatcher.cxx
index 010f1e3e361c..90d560c851df 100644
--- a/framework/source/dispatch/closedispatcher.cxx
+++ b/framework/source/dispatch/closedispatcher.cxx
@@ -312,28 +312,26 @@ IMPL_LINK_NOARG(CloseDispatcher, impl_asyncCallback)
// by others.
if ( ! xCloseFrame->getCreator().is())
bCloseFrame = sal_True;
- else
// b) The help window cant disagree with any request.
// Because it doesnt implement a controller - it uses a window only.
// Further t cant be the last open frame - if we do all other things
// right inside this CloseDispatcher implementation.
// => close it!
- if (aCheck1.m_bReferenceIsHelp)
+ else if (aCheck1.m_bReferenceIsHelp)
bCloseFrame = sal_True;
- else
// c) If we are already in "backing mode", we have to terminate
// the application, if this special frame is closed.
// It doesnt matter, how many other frames (can be the help or hidden frames only)
// are open then.
// => terminate the application!
- if (aCheck1.m_bReferenceIsBacking)
+ else if (aCheck1.m_bReferenceIsBacking)
bTerminateApp = sal_True;
- else
// d) Otherwhise we have to: close all views to the same document, close the
// document inside our own frame and decide then again, what has to be done!
+ else
{
if (implts_prepareFrameForClosing(m_xCloseFrame, bAllowSuspend, bCloseAllViewsToo, bControllerSuspended))
{