From 9970df7fded344fb681edc62c604111704aead5a Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 20 Apr 2021 11:36:20 -0400 Subject: [PATCH] Pass delta by ref for performance --- src/zm_frame.cpp | 2 +- src/zm_frame.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_frame.cpp b/src/zm_frame.cpp index bf47bdbf5..ad36226f7 100644 --- a/src/zm_frame.cpp +++ b/src/zm_frame.cpp @@ -5,7 +5,7 @@ Frame::Frame( int p_frame_id, FrameType p_type, struct timeval p_timestamp, - struct DeltaTimeval p_delta, + struct DeltaTimeval &p_delta, int p_score ) : event_id(p_event_id), diff --git a/src/zm_frame.h b/src/zm_frame.h index 6bb02f192..756cd396c 100644 --- a/src/zm_frame.h +++ b/src/zm_frame.h @@ -41,7 +41,7 @@ public: int p_frame_id, FrameType p_type, struct timeval p_timestamp, - struct DeltaTimeval p_delta, + struct DeltaTimeval &p_delta, int p_score );