[Coverity] Fix uninitialised variable warnings

This commit is contained in:
baldurk
2018-05-08 12:22:45 +01:00
parent 3e69599da2
commit 1a5b189441
6 changed files with 11 additions and 11 deletions
+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;
+1 -1
View File
@@ -640,7 +640,7 @@ private:
// m_Replay is set
uint64_t m_PreviewOutput = 0;
// The previous windowing data, so we can detect changes and recreate the window
WindowingData m_PreviewWindowingData;
WindowingData m_PreviewWindowingData = {WindowingSystem::Unknown};
uint32_t m_EventID = 0;
+1 -1
View File
@@ -296,7 +296,7 @@ void D3D11TextRenderer::RenderTextInternal(float x, float y, const char *text)
RDCASSERT(strlen(text) < FONT_MAX_CHARS);
FontCBuffer data;
FontCBuffer data = {};
data.TextPosition.x = x;
data.TextPosition.y = y;
+1 -1
View File
@@ -442,7 +442,7 @@ void D3D12TextRenderer::RenderTextInternal(ID3D12GraphicsCommandList *list, floa
RDCASSERT(strlen(text) < FONT_MAX_CHARS);
FontCBuffer data;
FontCBuffer data = {};
data.TextPosition.x = x;
data.TextPosition.y = y;
+1 -1
View File
@@ -1572,7 +1572,7 @@ private:
}
void *m_pUserData = NULL;
uint64_t m_Version;
uint64_t m_Version = 0;
uint64_t m_StructArg = 0;