From 9fb0cac961f70d1937c5fa3eafeaee1385c89768 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Fri, 20 Apr 2018 15:46:21 +0100 Subject: COMPMID-1081: Introduced test-wide instruments Change-Id: I5831241f3fc503717cc51136453c2bf96d4b420b Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/128484 Tested-by: Jenkins Reviewed-by: Georgios Pinitas --- utils/Utils.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'utils/Utils.h') diff --git a/utils/Utils.h b/utils/Utils.h index 73b6d4f832..6241562a28 100644 --- a/utils/Utils.h +++ b/utils/Utils.h @@ -83,13 +83,12 @@ public: * @param[in] argv Command line arguments * @param[in] example Example to run */ -int run_example(int argc, char **argv, Example &example); +int run_example(int argc, char **argv, std::unique_ptr example); template int run_example(int argc, char **argv) { - T example; - return run_example(argc, argv, example); + return run_example(argc, argv, support::cpp14::make_unique()); } /** Draw a RGB rectangular window for the detected object -- cgit v1.2.1