Fixed PVS-Studio false positives.
Not sure if there's a way to report them.
This commit is contained in:
parent
f150bf09f9
commit
96b6eb7728
@ -2684,7 +2684,7 @@ bool ImGui::DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v
|
|||||||
ClearActiveID();
|
ClearActiveID();
|
||||||
else if ((g.ActiveIdSource == ImGuiInputSource_Keyboard || g.ActiveIdSource == ImGuiInputSource_Gamepad) && g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated)
|
else if ((g.ActiveIdSource == ImGuiInputSource_Keyboard || g.ActiveIdSource == ImGuiInputSource_Gamepad) && g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated)
|
||||||
ClearActiveID();
|
ClearActiveID();
|
||||||
if (ShortcutsForCancel(id) && g.ActiveId == id)
|
if (ShortcutsForCancel(id) && g.ActiveId == id) //-V560
|
||||||
{
|
{
|
||||||
// Canceling action reverts to initial value
|
// Canceling action reverts to initial value
|
||||||
size_t data_size = DataTypeGetInfo(data_type)->Size;
|
size_t data_size = DataTypeGetInfo(data_type)->Size;
|
||||||
@ -3301,7 +3301,7 @@ bool ImGui::SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type
|
|||||||
if (g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated)
|
if (g.NavActivatePressedId == id && !g.ActiveIdIsJustActivated)
|
||||||
ClearActiveID();
|
ClearActiveID();
|
||||||
}
|
}
|
||||||
if (ShortcutsForCancel(id) && g.ActiveId == id)
|
if (ShortcutsForCancel(id) && g.ActiveId == id) //-V560
|
||||||
{
|
{
|
||||||
// Canceling action reverts to initial value
|
// Canceling action reverts to initial value
|
||||||
size_t data_size = DataTypeGetInfo(data_type)->Size;
|
size_t data_size = DataTypeGetInfo(data_type)->Size;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user