Fix all - 2 cppcheck performance hints

This commit is contained in:
heckflosse
2016-07-06 13:04:24 +02:00
parent a991d53bf3
commit c8779c04f5
43 changed files with 114 additions and 146 deletions

View File

@@ -1361,12 +1361,10 @@ void Color::interpolateRGBColor (float realL, float iplow, float iphigh, int alg
float bal, balH, cal, calH, calm;
bal = balH = balance;
cal = calH = calm = 1.f - chromat;
float med = (iphigh + iplow) / 2.f;
float medH = (iphigh + iplow) / 2.f;
float med = 1.f;
float medH = 0.f;
float medL = (iphigh + iplow) / 2.f;
med = 1.f;
medH = 0.f; //new algo for 2 colors
float calan;
calan = chromat;