diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-10-26 12:41:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-26 12:41:37 +0100 |
commit | fe347327a44f2d8ed201f9fbc2ae4858f34962d8 (patch) | |
tree | 41d925f7317bbd9eddebcfcf07be00d2249e9c74 /filter/source/t602 | |
parent | 308ed5c3370cda22b61d5af4e90463df8cb83d5f (diff) |
loplugin: unused aName string and whacky indent
Change-Id: I3febbc1618ca86f19c851a8eea313327a9c0a96c
Diffstat (limited to 'filter/source/t602')
-rw-r--r-- | filter/source/t602/t602filter.cxx | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/filter/source/t602/t602filter.cxx b/filter/source/t602/t602filter.cxx index ed582a0659b6..f60a7781e11e 100644 --- a/filter/source/t602/t602filter.cxx +++ b/filter/source/t602/t602filter.cxx @@ -535,19 +535,17 @@ void T602ImportFilter::wrtfnt() void T602ImportFilter::setfnt(fonts fnt,bool mustwrite) { - if( fnt == fst.oldfnt && - fnt == fst.nowfnt && - !mustwrite ) + if (fnt == fst.oldfnt && fnt == fst.nowfnt && !mustwrite) fst.nowfnt = standard; - else - if (fnt != chngul) fst.nowfnt = fnt; + else if (fnt != chngul) + fst.nowfnt = fnt; - if(mustwrite) - if(fst.oldfnt != fst.nowfnt || fst.olduline != fst.uline) { - wrtfnt(); - fst.oldfnt = fst.nowfnt; - fst.olduline = fst.uline; - } + if (mustwrite && (fst.oldfnt != fst.nowfnt || fst.olduline != fst.uline)) + { + wrtfnt(); + fst.oldfnt = fst.nowfnt; + fst.olduline = fst.uline; + } } unsigned char T602ImportFilter::Readchar602() |