mirror of
https://github.com/leozide/leocad
synced 2024-11-16 07:47:27 +01:00
Fixed warnings.
This commit is contained in:
parent
cd3a03e1de
commit
d5bcf46da1
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue