[Coverity] Fix coverity issue
authorEunju Yang <ej.yang@samsung.com>
Fri, 2 Feb 2024 08:37:24 +0000 (17:37 +0900)
committerjijoong.moon <jijoong.moon@samsung.com>
Wed, 20 Mar 2024 06:20:13 +0000 (15:20 +0900)
Issue: 1745839
Signed-off-by: Eunju Yang <ej.yang@samsung.com>
Applications/Custom/OptimizerPlugin/optimizer_plugin_common_test.h

index 0f988c9..9aa6d13 100644 (file)
@@ -53,7 +53,7 @@ public:
    *
    */
   virtual void SetUp() {
-    auto f = std::get<0>(GetParam());
+    const auto &f = std::get<0>(GetParam());
     opt = std::move(f({}));
     std::tie(std::ignore, expected_type, valid_properties, options, must_fail,
              num_inputs) = GetParam();