refactor: Don't copy strings

This commit is contained in:
John Colvin committed 2022-08-16 21:08:53 -04:00
1 parent 99371a2ead
commit 04477a4b7c
1 file changed
+1 -1
+1 -1
View File
@@ -102,7 +102,7 @@ ActorThread *find_thread_for_actor(
class OpenOrderRecordIDStore {
public:
std::uint32_t get_rec_id(std::string exch_order_id) {
std::uint32_t get_rec_id(const std::string &exch_order_id) {
auto [it, is_new] =
rec_ids_.try_emplace(exch_order_id, rec_id_counter_);
if (is_new) {