mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-30 07:22:03 +08:00
Avoid unnecessary copy of the variable 'pair' in WifiConfigDialog::rescan_networks().
This commit is contained in:
parent
69b29a202f
commit
a98b97643e
@ -192,7 +192,7 @@ void WifiConfigDialog::rescan_networks(bool select)
|
||||
std::string current = m_wifi_scanner->get_current_ssid();
|
||||
const auto& map = m_wifi_scanner->get_map();
|
||||
m_ssid_combo->Clear();
|
||||
for (const auto pair : map) {
|
||||
for (const auto &pair : map) {
|
||||
m_ssid_combo->Append(pair.first);
|
||||
// select ssid of current network (if connected)
|
||||
if (current == pair.first)
|
||||
|
Loading…
x
Reference in New Issue
Block a user