summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-26 12:41:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-26 12:41:37 +0100
commitfe347327a44f2d8ed201f9fbc2ae4858f34962d8 (patch)
tree41d925f7317bbd9eddebcfcf07be00d2249e9c74 /filter
parent308ed5c3370cda22b61d5af4e90463df8cb83d5f (diff)
loplugin: unused aName string and whacky indent
Change-Id: I3febbc1618ca86f19c851a8eea313327a9c0a96c
Diffstat (limited to 'filter')
-rw-r--r--filter/source/t602/t602filter.cxx20
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()