Pass by reference -- Thanks Copilot!

This commit is contained in:
Jonathan Bennett 2025-06-25 18:08:24 -05:00
parent b1e3353ceb
commit 18098fb1cb

View File

@ -1339,7 +1339,7 @@ bool NodeDB::saveNodeDatabaseToDisk()
void NodeDB::sortMeshDB()
{
std::sort(meshNodes->begin(), meshNodes->end(), [](const meshtastic_NodeInfoLite a, const meshtastic_NodeInfoLite b) {
std::sort(meshNodes->begin(), meshNodes->end(), [](const meshtastic_NodeInfoLite &a, const meshtastic_NodeInfoLite &b) {
if (a.num == myNodeInfo.my_node_num) {
return true;
}