Cleanup: Strict compiler warning
Pull Request: https://projects.blender.org/blender/blender/pulls/111233
This commit is contained in:
committed by
Sergey Sharybin
parent
9ef2310e5f
commit
3a3390fcdd
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user