From 04477a4b7c546ce6d4774c201f54472236305cfc Mon Sep 17 00:00:00 2001 From: John Colvin Date: Tue, 16 Aug 2022 21:08:53 -0400 Subject: [PATCH] refactor: Don't copy strings --- src/lib/orderman/OrderServiceServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/orderman/OrderServiceServer.cpp b/src/lib/orderman/OrderServiceServer.cpp index 38ca23e86..17a612f71 100644 --- a/src/lib/orderman/OrderServiceServer.cpp +++ b/src/lib/orderman/OrderServiceServer.cpp @@ -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) {