Initialise variables that might not be set otherwise before first use

This commit is contained in:
baldurk
2019-03-01 11:33:05 +00:00
parent a53dbe40b6
commit e23974e2bf
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ private:
Ui::APIInspector *ui;
ICaptureContext &m_Ctx;
uint32_t m_EventID;
uint32_t m_EventID = 0;
void addCallstack(rdcarray<rdcstr> calls);
void fillAPIView();
+3 -3
View File
@@ -294,9 +294,9 @@ private:
QSizeF m_PrevSize;
PixelValue m_CurRealValue;
PixelValue m_CurPixelValue;
PixelValue m_CurHoverValue;
PixelValue m_CurRealValue = {};
PixelValue m_CurPixelValue = {};
PixelValue m_CurHoverValue = {};
QColor backCol;
+2 -2
View File
@@ -321,13 +321,13 @@ in-place, so it would be slice 0: sample 0, slice 0: sample 1, slice 1: sample 0
This then follows the mapping for array slices as with any other array texture. :data:`sampleIndex`
is ignored.
)");
bool mapToArray;
bool mapToArray = false;
DOCUMENT(R"(
If :data:`mapToArray` is ``False`` this selects which sample should be extracted to treat as a
normal 2D image. If set to :data:`ResolveSamples` then instead there's a default average resolve.
)");
uint32_t sampleIndex;
uint32_t sampleIndex = ~0U;
static const uint32_t ResolveSamples = ~0U;
};