From 18098fb1cb71a24a087aecbe5b02e19698018e4e Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Wed, 25 Jun 2025 18:08:24 -0500 Subject: [PATCH] Pass by reference -- Thanks Copilot! --- src/mesh/NodeDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index b839b0aba..470c11cbd 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -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; }