mirror of
https://github.com/ocornut/imgui.git
synced 2024-10-16 16:25:15 -05:00
Silence PVS Studio static analyzer false positives.
This commit is contained in:
parent
ba14c70b02
commit
29cff2be06
1 changed files with 3 additions and 3 deletions
|
@ -10515,7 +10515,7 @@ void ImGui::ErrorRecoveryTryToRecoverWindowState(const ImGuiErrorRecoveryStat
|
||||||
{
|
{
|
||||||
ImGuiContext& g = *GImGui;
|
ImGuiContext& g = *GImGui;
|
||||||
|
|
||||||
while (g.CurrentTable != NULL && g.CurrentTable->InnerWindow == g.CurrentWindow)
|
while (g.CurrentTable != NULL && g.CurrentTable->InnerWindow == g.CurrentWindow) //-V1044
|
||||||
{
|
{
|
||||||
IM_ASSERT_USER_ERROR(0, "Missing EndTable()");
|
IM_ASSERT_USER_ERROR(0, "Missing EndTable()");
|
||||||
EndTable();
|
EndTable();
|
||||||
|
@ -10529,7 +10529,7 @@ void ImGui::ErrorRecoveryTryToRecoverWindowState(const ImGuiErrorRecoveryStat
|
||||||
IM_ASSERT_USER_ERROR(0, "Missing EndTabBar()");
|
IM_ASSERT_USER_ERROR(0, "Missing EndTabBar()");
|
||||||
EndTabBar();
|
EndTabBar();
|
||||||
}
|
}
|
||||||
while (g.CurrentMultiSelect != NULL && g.CurrentMultiSelect->Storage->Window == window)
|
while (g.CurrentMultiSelect != NULL && g.CurrentMultiSelect->Storage->Window == window) //-V1044
|
||||||
{
|
{
|
||||||
IM_ASSERT_USER_ERROR(0, "Missing EndMultiSelect()");
|
IM_ASSERT_USER_ERROR(0, "Missing EndMultiSelect()");
|
||||||
EndMultiSelect();
|
EndMultiSelect();
|
||||||
|
@ -10562,7 +10562,7 @@ void ImGui::ErrorRecoveryTryToRecoverWindowState(const ImGuiErrorRecoveryStat
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
IM_ASSERT(g.DisabledStackSize == state_in->SizeOfDisabledStack);
|
IM_ASSERT(g.DisabledStackSize == state_in->SizeOfDisabledStack);
|
||||||
while (g.ColorStack.Size > state_in->SizeOfColorStack)
|
while (g.ColorStack.Size > state_in->SizeOfColorStack) //-V1044
|
||||||
{
|
{
|
||||||
IM_ASSERT_USER_ERROR(0, "Missing PopStyleColor()");
|
IM_ASSERT_USER_ERROR(0, "Missing PopStyleColor()");
|
||||||
PopStyleColor();
|
PopStyleColor();
|
||||||
|
|
Loading…
Reference in a new issue