[Coverity] Fix uninitialised variable warnings

This commit is contained in:
baldurk committed 2018-05-08 12:22:45 +01:00
1 parent 3e69599da2
commit 1a5b189441
6 files changed
+11 -11

No files matched your search

+3 -3
View File
@@ -1388,16 +1388,16 @@ DOCUMENT("Contains the bytes and metadata describing a thumbnail.");
struct Thumbnail
{
DOCUMENT("The :class:`FileType` of the data in the thumbnail.");
FileType type;
FileType type = FileType::Raw;
DOCUMENT("The ``bytes`` byte array containing the raw data.");
bytebuf data;
DOCUMENT("The width of the thumbnail image.");
uint32_t width;
uint32_t width = 0;
DOCUMENT("The height of the thumbnail image.");
uint32_t height;
uint32_t height = 0;
};
DECLARE_REFLECTION_STRUCT(Thumbnail);
+4 -4
View File
@@ -122,7 +122,7 @@ struct ShaderVariable
{
name = "";
rows = columns = 0;
displayAsHex = isStruct = false;
displayAsHex = isStruct = rowMajor = false;
type = VarType::Float;
for(int i = 0; i < 16; i++)
value.uv[i] = 0;
@@ -132,7 +132,7 @@ struct ShaderVariable
name = n;
rows = 1;
columns = 4;
displayAsHex = isStruct = false;
displayAsHex = isStruct = rowMajor = false;
for(int i = 0; i < 16; i++)
value.uv[i] = 0;
type = VarType::Float;
@@ -146,7 +146,7 @@ struct ShaderVariable
name = n;
rows = 1;
columns = 4;
displayAsHex = isStruct = false;
displayAsHex = isStruct = rowMajor = false;
for(int i = 0; i < 16; i++)
value.uv[i] = 0;
type = VarType::Int;
@@ -160,7 +160,7 @@ struct ShaderVariable
name = n;
rows = 1;
columns = 4;
displayAsHex = isStruct = false;
displayAsHex = isStruct = rowMajor = false;
for(int i = 0; i < 16; i++)
value.uv[i] = 0;
type = VarType::UInt;