Persistently fixing some PVS-Studio static analyzer false positive warnings.

This commit is contained in:
omar
2019-01-27 16:35:48 +01:00
parent ee3b4f2bf1
commit 4e8e177cac
4 changed files with 7 additions and 7 deletions

View File

@ -4007,7 +4007,7 @@ bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flag
{
if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_3F))
{
memcpy((float*)col, payload->Data, sizeof(float) * 3); // Preserve alpha if any
memcpy((float*)col, payload->Data, sizeof(float) * 3); // Preserve alpha if any //-V512
value_changed = true;
}
if (const ImGuiPayload* payload = AcceptDragDropPayload(IMGUI_PAYLOAD_TYPE_COLOR_4F))
@ -5485,7 +5485,7 @@ bool ImGui::BeginMainMenuBar()
End();
return false;
}
return true;
return true; //-V1020
}
void ImGui::EndMainMenuBar()