From 8c075a878fd6a834cb6e558a2f765e172952736d Mon Sep 17 00:00:00 2001 From: David Kocik Date: Wed, 17 Mar 2021 15:43:41 +0100 Subject: [PATCH] warning fix --- src/slic3r/GUI/PrintHostDialogs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/PrintHostDialogs.cpp b/src/slic3r/GUI/PrintHostDialogs.cpp index afbc604bc..f69db2ea3 100644 --- a/src/slic3r/GUI/PrintHostDialogs.cpp +++ b/src/slic3r/GUI/PrintHostDialogs.cpp @@ -224,7 +224,7 @@ PrintHostQueueDialog::PrintHostQueueDialog(wxWindow *parent) std::vector size; SetSize(load_user_data(UDT_SIZE, size) ? wxSize(size[0] * em, size[1] * em) : wxSize(HEIGHT * em, WIDTH * em)); - Bind(wxEVT_SIZE, [this, em](wxSizeEvent& evt) { + Bind(wxEVT_SIZE, [this](wxSizeEvent& evt) { OnSize(evt); save_user_data(UDT_SIZE | UDT_POSITION | UDT_COLS); }); @@ -233,7 +233,7 @@ PrintHostQueueDialog::PrintHostQueueDialog(wxWindow *parent) if (load_user_data(UDT_POSITION, pos)) SetPosition(wxPoint(pos[0], pos[1])); - Bind(wxEVT_MOVE, [this, em](wxMoveEvent& evt) { + Bind(wxEVT_MOVE, [this](wxMoveEvent& evt) { save_user_data(UDT_SIZE | UDT_POSITION | UDT_COLS); });