Cleanup: Strict compiler warning

Pull Request: https://projects.blender.org/blender/blender/pulls/111233
This commit is contained in:
Sergey Sharybin
2023-08-17 17:22:08 +02:00
committed by Sergey Sharybin
parent 9ef2310e5f
commit 3a3390fcdd
+3 -1
View File
@@ -146,7 +146,9 @@ std::list<OCIO_GPUDisplayShader> SHADER_CACHE;
/** \name Shader
* \{ */
void string_replace_all(std::string &haystack, const std::string &needle, const std::string &other)
static void string_replace_all(std::string &haystack,
const std::string &needle,
const std::string &other)
{
size_t i = 0, index;
while ((index = haystack.find(needle, i)) != std::string::npos) {