Various minor fixes following a pass of cppcheck static analyzer

This commit is contained in:
ocornut
2015-12-30 11:45:13 +01:00
parent 3aa4a108ed
commit 4e3c6f64c0
3 changed files with 5 additions and 3 deletions

View File

@ -462,6 +462,7 @@ struct ImGuiState
SetNextWindowCollapsedVal = false;
SetNextWindowPosCond = 0;
SetNextWindowSizeCond = 0;
SetNextWindowContentSizeCond = 0;
SetNextWindowCollapsedCond = 0;
SetNextWindowFocus = false;
SetNextTreeNodeOpenedVal = false;
@ -482,6 +483,7 @@ struct ImGuiState
ModalWindowDarkeningRatio = 0.0f;
OverlayDrawList._OwnerName = "##Overlay"; // Give it a name for debugging
MouseCursor = ImGuiMouseCursor_Arrow;
memset(MouseCursorData, 0, sizeof(MouseCursorData));
LogEnabled = false;
LogFile = NULL;
@ -493,6 +495,7 @@ struct ImGuiState
FramerateSecPerFrameIdx = 0;
FramerateSecPerFrameAccum = 0.0f;
CaptureMouseNextFrame = CaptureKeyboardNextFrame = false;
memset(TempBuffer, 0, sizeof(TempBuffer));
}
};