Fixed warnings.
This commit is contained in:
+1
-1
@@ -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
@@ -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());
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user