Fixed warnings.

This commit is contained in:
Leonardo Zide 2019-07-09 08:47:15 -07:00
parent cd3a03e1de
commit d5bcf46da1
3 changed files with 4 additions and 4 deletions

View file

@ -407,7 +407,7 @@ int lcGetColorIndex(quint32 ColorCode)
{
for (size_t ColorIdx = 0; ColorIdx < gColorList.size(); ColorIdx++)
if (gColorList[ColorIdx].Code == ColorCode)
return ColorIdx;
return (int)ColorIdx;
lcColor Color;

View file

@ -72,7 +72,7 @@ inline quint32 lcGetColorCode(int ColorIndex)
return gColorList[ColorIndex].Code;
}
inline bool lcIsColorTranslucent(int ColorIndex)
inline bool lcIsColorTranslucent(size_t ColorIndex)
{
return gColorList[ColorIndex].Translucent;
}

View file

@ -2215,8 +2215,8 @@ bool Project::ExportPOVRay(const QString& FileName)
POVFile.WriteLine("\n");
lcArray<const char*> ColorTablePointer;
ColorTablePointer.SetSize(NumColors);
std::vector<const char*> ColorTablePointer;
ColorTablePointer.resize(NumColors);
for (size_t ColorIdx = 0; ColorIdx < NumColors; ColorIdx++)
ColorTablePointer[ColorIdx] = ColorTable[ColorIdx].data();