Skip to content

Commit 3421c0d

Browse files
committed
Use std::move instead of copy
1 parent 8bb4115 commit 3421c0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/include/sycl/property_list.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ class PropertyValidator {
8484
static void checkPropsAndThrow(const property_list &PropList,
8585
std::function<bool(int)> FunctionForDataless,
8686
std::function<bool(int)> FunctionForData) {
87-
PropList.checkPropsAndThrow(FunctionForDataless, FunctionForData);
87+
PropList.checkPropsAndThrow(std::move(FunctionForDataless),
88+
std::move(FunctionForData));
8889
}
8990
};
9091
} // namespace detail

0 commit comments

Comments
 (0)