Cycles: Some cleanup, should be no functional changes

Addressing meaningful feedback from coverity.
This commit is contained in:
Sergey Sharybin
2016-02-16 15:32:26 +01:00
parent 21c88df7c7
commit d0246d5f30
3 changed files with 5 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ static int validate_enum_value(int value, int num_values, int default_value)
}
template<typename NodeType>
static InterpolationType get_image_interpolation(NodeType b_node)
static InterpolationType get_image_interpolation(NodeType& b_node)
{
int value = b_node.interpolation();
return (InterpolationType)validate_enum_value(value,
@@ -87,7 +87,7 @@ static InterpolationType get_image_interpolation(NodeType b_node)
}
template<typename NodeType>
static ExtensionType get_image_extension(NodeType b_node)
static ExtensionType get_image_extension(NodeType& b_node)
{
int value = b_node.extension();
return (ExtensionType)validate_enum_value(value,

View File

@@ -44,8 +44,7 @@ void *util_aligned_malloc(size_t size, int alignment)
{
#ifdef WITH_BLENDER_GUARDEDALLOC
return MEM_mallocN_aligned(size, alignment, "Cycles Aligned Alloc");
#endif
#ifdef _WIN32
#elif defined(_WIN32)
return _aligned_malloc(size, alignment);
#elif defined(__APPLE__)
/* On Mac OS X, both the heap and the stack are guaranteed 16-byte aligned so

View File

@@ -178,7 +178,8 @@ public:
class path_info {
public:
path_info(const string& path)
: path_(path)
: path_(path),
entry_(NULL)
{
}