Fixed warnings.

This commit is contained in:
Leonardo Zide
2019-03-11 18:29:19 -07:00
parent ec200db325
commit f99e6d7583
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1525,7 +1525,7 @@ QImage Project::CreatePartsListImage(lcModel* Model, lcStep Step)
}
}
auto ImageCompare = [this](const lcPartsListImage& Image1, const lcPartsListImage& Image2)
auto ImageCompare = [](const lcPartsListImage& Image1, const lcPartsListImage& Image2)
{
if (Image1.ColorIndex != Image2.ColorIndex)
return Image1.ColorIndex < Image2.ColorIndex;
+3 -3
View File
@@ -581,7 +581,7 @@ lcMatrix44 View::GetPieceInsertPosition(bool IgnoreSelected, PieceInfo* Info) co
return WorldMatrix;
}
std::array<lcVector3, 2> ClickPoints = { lcVector3((float)mInputState.x, (float)mInputState.y, 0.0f), lcVector3((float)mInputState.x, (float)mInputState.y, 1.0f) };
std::array<lcVector3, 2> ClickPoints = {{ lcVector3((float)mInputState.x, (float)mInputState.y, 0.0f), lcVector3((float)mInputState.x, (float)mInputState.y, 1.0f) }};
UnprojectPoints(ClickPoints.data(), 2);
if (ActiveModel != mModel)
@@ -681,14 +681,14 @@ lcArray<lcObject*> View::FindObjectsInBox(float x1, float y1, float x2, float y2
}
std::array<lcVector3, 6> Corners =
{
{{
lcVector3(Left, Top, 0),
lcVector3(Left, Bottom, 0),
lcVector3(Right, Bottom, 0),
lcVector3(Right, Top, 0),
lcVector3(Left, Top, 1),
lcVector3(Right, Bottom, 1)
};
}};
UnprojectPoints(Corners.data(), Corners.size());
+1 -1
View File
@@ -711,7 +711,7 @@ void lcQPreferencesDialog::UpdateMouseTree()
void lcQPreferencesDialog::UpdateMouseTreeItem(int ItemIndex)
{
auto GetShortcutText = [this](Qt::MouseButton Button, Qt::KeyboardModifiers Modifiers)
auto GetShortcutText = [](Qt::MouseButton Button, Qt::KeyboardModifiers Modifiers)
{
QString Shortcut = QKeySequence(Modifiers).toString(QKeySequence::NativeText);