graphic/text/bidi.cc::make_ligatures assign values which are never used
Bug #1603741 reported by
Hans Joachim Desserud
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Low
|
Unassigned |
Bug Description
The method make_ligatures in graphic/
Similar assignements happen in the else if branch, but there they are used later. This does not seem to be the case for the values in the if branch. I'm not sure about the intetion here though, so I don't know if the assignments can simply be removed or if they should be used in some way later.
Found by scan-build in r8026
summary: |
- graphic/text/bidi.cc::make_ligatures has assign values which are never - used + graphic/text/bidi.cc::make_ligatures assign values which are never used |
To post a comment you must log in.
These 2 variables are declared outside of the loop, to their values persist throughout the lifetime of the loop and change the loop's behaviour for the next pass. The lines you mention are about skipping diacritics, so the loop can analyze which forms of the basic characters to pick (each Arabic character has a final form, and some of them also have a medial and an initial form).