From bcff3d17e8e14cd31a3377fec54c7716d04fc762 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 16 Jun 2022 21:34:34 +0200 Subject: [PATCH] Remove unnecessary assignment in wxFileDialog code "panel" here is an input argument, it's confusing to change it and it's unnecessary anyhow, so just don't do it. No real changes. --- src/osx/cocoa/filedlg.mm | 1 - 1 file changed, 1 deletion(-) diff --git a/src/osx/cocoa/filedlg.mm b/src/osx/cocoa/filedlg.mm index 759f08f967..3321a82edc 100644 --- a/src/osx/cocoa/filedlg.mm +++ b/src/osx/cocoa/filedlg.mm @@ -650,7 +650,6 @@ void wxFileDialog::ModalFinishedCallback(void* panel, int returnCode) NSOpenPanel* oPanel = (NSOpenPanel*)panel; if (returnCode == NSModalResponseOK ) { - panel = oPanel; result = wxID_OK; bool isFirst = true;