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 | |
parent | simplify pattern-target by using a simple recursion… (diff) | |
download | core-fe347327a44f2d8ed201f9fbc2ae4858f34962d8.tar.gz core-fe347327a44f2d8ed201f9fbc2ae4858f34962d8.zip |
loplugin: unused aName string and whacky indent
Change-Id: I3febbc1618ca86f19c851a8eea313327a9c0a96c
Diffstat (limited to 'filter')
-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() |