From 12501e93ec048159e917f5e61612edc9b633524b Mon Sep 17 00:00:00 2001 From: German Semenov Date: Mon, 20 Nov 2023 14:35:34 +0300 Subject: [PATCH] Added const refences and minor replace post-preincrement --- src/OpenCL/include/CL/cl.hpp | 8 ++++---- src/utilities.hpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/OpenCL/include/CL/cl.hpp b/src/OpenCL/include/CL/cl.hpp index 3b456b7..88acb96 100644 --- a/src/OpenCL/include/CL/cl.hpp +++ b/src/OpenCL/include/CL/cl.hpp @@ -5331,8 +5331,8 @@ class Program : public detail::Wrapper #if defined(CL_VERSION_1_2) inline Program linkProgram( - Program input1, - Program input2, + const Program& input1, + const Program& input2, const char* options = NULL, void (CL_CALLBACK * notifyFptr)(cl_program, void *) = NULL, void* data = NULL, @@ -5367,7 +5367,7 @@ inline Program linkProgram( } inline Program linkProgram( - VECTOR_CLASS inputPrograms, + const VECTOR_CLASS& inputPrograms, const char* options = NULL, void (CL_CALLBACK * notifyFptr)(cl_program, void *) = NULL, void* data = NULL, @@ -12792,7 +12792,7 @@ struct make_kernel : {} make_kernel( - const Kernel kernel) : + const Kernel& kernel) : detail::functionImplementation_< T0, T1, T2, T3, T4, T5, T6, T7, diff --git a/src/utilities.hpp b/src/utilities.hpp index 9a0b161..9b21ad4 100644 --- a/src/utilities.hpp +++ b/src/utilities.hpp @@ -565,7 +565,7 @@ inline vector split_regex(const string& s, const string& separator="\\s+ std::sregex_token_iterator token(s.begin(), s.end()+1, rgx, -1), end; while(token!=end) { r.push_back(*token); - token++; + ++token; } return r; }