--- a/uiacceltk/hitchcock/coretoolkit/src/HuiGridLayout.cpp Fri Jun 11 16:26:54 2010 +0100
+++ b/uiacceltk/hitchcock/coretoolkit/src/HuiGridLayout.cpp Tue Jun 15 14:05:48 2010 +0100
@@ -273,7 +273,8 @@
axis.iWeights.Reset();
for(TInt i = 0; i < aWeights.Count(); ++i)
{
- THuiMetric weight(TReal32(aWeights[i]), EHuiUnitWeight);
+ TInt weight_value(aWeights[i]); //evaluate this first and then use the value to initialize TReal (this fixes gcc 4.4.1 issue)
+ THuiMetric weight(TReal32(weight_value), EHuiUnitWeight);
User::LeaveIfError(axis.iWeights.Append(weight));
}
}
@@ -284,7 +285,8 @@
axis.iWeights.Reset();
for(TInt i = 0; i < aWeights.Count(); ++i)
{
- THuiMetric weight(TReal32(aWeights[i]), EHuiUnitWeight);
+ TInt weight_value(aWeights[i]); //evaluate this first and then use the value to initialize TReal (this fixes gcc 4.4.1 issue)
+ THuiMetric weight(TReal32(weight_value), EHuiUnitWeight);
User::LeaveIfError(axis.iWeights.Append(weight));
}
}