summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-21 17:07:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-21 18:12:08 +0100
commit3b76773b0e38830ac16cbbb54848d75c5fea4f1c (patch)
tree086ad5e65f7982ab62df0c2c60baa6d3e04051ff /framework
parentcd5fd07207d2096787ecf34a7f1b837887a3fecd (diff)
loplugin: misleading else if indent
Diffstat (limited to 'framework')
-rw-r--r--framework/source/services/autorecovery.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
index 43fd47c26b03..a5efae10751e 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -2534,8 +2534,7 @@ AutoRecovery::ETimerType AutoRecovery::implts_openDocs(const DispatchParams& aPa
rInfo.DocumentState |= AutoRecovery::E_TRY_LOAD_BACKUP;
lDescriptor[::comphelper::MediaDescriptor::PROP_SALVAGEDFILE()] <<= sLoadOriginalURL;
}
- else
- if (!sLoadOriginalURL.isEmpty())
+ else if (!sLoadOriginalURL.isEmpty())
{
sURL = sLoadOriginalURL;
rInfo.DocumentState |= AutoRecovery::E_TRY_LOAD_ORIGINAL;
@@ -2780,8 +2779,7 @@ void AutoRecovery::implts_generateNewTempURL(const ::rtl::OUString&
xParser->parseStrict(aURL);
sUniqueName.append(aURL.Name);
}
- else
- if (!rInfo.FactoryURL.isEmpty())
+ else if (!rInfo.FactoryURL.isEmpty())
sUniqueName.appendAscii("untitled");
sUniqueName.appendAscii("_");
@@ -3168,11 +3166,9 @@ void AutoRecovery::implts_backupWorkingEntry(const DispatchParams& aParams)
// Prefer temp file. It contains the changes against the original document!
if (!rInfo.OldTempURL.isEmpty())
sSourceURL = rInfo.OldTempURL;
- else
- if (!rInfo.NewTempURL.isEmpty())
+ else if (!rInfo.NewTempURL.isEmpty())
sSourceURL = rInfo.NewTempURL;
- else
- if (!rInfo.OrgURL.isEmpty())
+ else if (!rInfo.OrgURL.isEmpty())
sSourceURL = rInfo.OrgURL;
else
continue; // nothing real to save! An unmodified but new created document.