diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-11-23 10:05:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-11-23 10:06:17 +0000 |
commit | 246ffb108c7e1f762f8d497750ad2414b85b99ef (patch) | |
tree | 1948bce147b2d2dabdc1dde7ae214c34d758e8da /sfx2 | |
parent | 4ee0ee4971119b0460fc3e7819a23acd34202dc4 (diff) |
loplugin: if else alignment
Change-Id: Id28afb74a945a4092965af60963e862d6aba50b3
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objcont.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx index 64d4d4629c0b..af77983aef47 100644 --- a/sfx2/source/doc/objcont.cxx +++ b/sfx2/source/doc/objcont.cxx @@ -255,11 +255,11 @@ void SfxObjectShell::UpdateTime_Impl( // If no day between now and last editing - calculate time directly. nAddTime = (const Time&)aNow - (const Time&)pImp->nTime ; } - else - // If time of working without save greater then 1 month (!) .... - // we add 0 to aOldTime! - if (nDays<=31) + else if (nDays<=31) { + // If time of working without save greater then 1 month (!) .... + // we add 0 to aOldTime! + // If 1 or up to 31 days between now and last editing - calculate time indirectly. // nAddTime = (24h - nTime) + (nDays * 24h) + aNow --nDays; |