From fa8c0c1a6c2ed129d0fe58ff8d46060e74fd8a04 Mon Sep 17 00:00:00 2001 From: Sven Johannsen Date: Sun, 25 Feb 2024 16:08:31 +0100 Subject: [PATCH] avoid useless case (FDuration pointer deref to FDuration= --- src/catch2/benchmark/detail/catch_analyse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/catch2/benchmark/detail/catch_analyse.cpp b/src/catch2/benchmark/detail/catch_analyse.cpp index 7d27daf195..14d7f4506d 100644 --- a/src/catch2/benchmark/detail/catch_analyse.cpp +++ b/src/catch2/benchmark/detail/catch_analyse.cpp @@ -63,8 +63,8 @@ namespace Catch { FDuration mean = FDuration(0); int i = 0; for (auto it = first; it < last; ++it, ++i) { - samples.push_back(FDuration(*it)); - mean += FDuration(*it); + samples.push_back(*it); + mean += *it; } mean /= i;