From 36451de3c754437c69645746ec947da3cba4393b Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Tue, 10 Sep 2024 16:24:23 +0200 Subject: [PATCH] fix: avoid unecessary copy constructor --- clutchlog/clutchlog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutchlog/clutchlog.h b/clutchlog/clutchlog.h index 9efb6dc..22309aa 100644 --- a/clutchlog/clutchlog.h +++ b/clutchlog/clutchlog.h @@ -832,7 +832,7 @@ class clutchlog if(domain.size() == 0) { return fmt(static_cast(h % 256)); } else { - return fmt(domain[h % domain.size()]); + return domain[h % domain.size()]; } } }; // fmt class