Fix coverity warning: Initialize result

Change-Id: I95a094ecd24e78dd452a58b0757a9ae69c81a555
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Knud Dollereder
2020-06-30 12:24:55 +02:00
parent a2f282e440
commit 5143e6c8ba

View File

@@ -144,7 +144,7 @@ LabelingInfo optLegibility(int k, double lmin, double lstep)
Axis Axis::compute(double dmin, double dmax, double height, double pt)
{
Axis result;
Axis result = {0.0, 0.0, 0.0};
auto score = [](double a, double b, double c, double d) {
return a * 0.2 + b * 0.25 + c * 0.5 + d * 0.05;