Skip to content

Commit f9ec840

Browse files
committed
Fix lint error.
1 parent a72c4fb commit f9ec840

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/dialogs/dlg_easy_setup.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ void EasySetupDialog::OnTest(wxCommandEvent&)
858858

859859
hamlibTestObject_ = std::make_shared<HamlibRigController>(rig, (const char*)serialPort.ToUTF8(), rate, civHexAddress, pttType);
860860
hamlibTestObject_->onRigError += [this](IRigController*, std::string error) {
861-
CallAfter([this, error]() {
861+
CallAfter([this, error = std::move(error)]() {
862862
wxMessageBox(
863863
wxString::Format("Couldn't connect to Radio with Hamlib (%s). Make sure the Hamlib serial Device, Rate, and Params match your radio", error),
864864
wxT("Error"), wxOK | wxICON_ERROR, this);
@@ -898,7 +898,7 @@ void EasySetupDialog::OnTest(wxCommandEvent&)
898898
DTRPos
899899
);
900900
serialPortTestObject_->onRigError += [this](IRigController*, std::string error) {
901-
CallAfter([this, error]() {
901+
CallAfter([this, error = std::move(error)]() {
902902
wxMessageBox(
903903
wxString::Format("Couldn't connect to Radio (%s). Make sure the serial Device and Params match your radio", error),
904904
wxT("Error"), wxOK | wxICON_ERROR, this);

0 commit comments

Comments
 (0)