refactor: Don't copy strings
This commit is contained in:
1 parent
99371a2ead
commit
04477a4b7c
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user