Skip to content

Commit fc203c7

Browse files
committed
Minor fix to sastisfy PVS-Studio warning. (amend, 3nd attempt: this is a false positive from PVS studio)
1 parent 6d15a50 commit fc203c7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

imgui.cpp

+3-6
Original file line numberDiff line numberDiff line change
@@ -2248,18 +2248,15 @@ void ImGuiStorage::SetAllInt(int v)
22482248
//-----------------------------------------------------------------------------
22492249

22502250
// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]"
2251-
ImGuiTextFilter::ImGuiTextFilter(const char* default_filter)
2251+
ImGuiTextFilter::ImGuiTextFilter(const char* default_filter) //-V1077
22522252
{
2253+
InputBuf[0] = 0;
2254+
CountGrep = 0;
22532255
if (default_filter)
22542256
{
22552257
ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf));
22562258
Build();
22572259
}
2258-
else
2259-
{
2260-
InputBuf[0] = 0;
2261-
CountGrep = 0;
2262-
}
22632260
}
22642261

22652262
bool ImGuiTextFilter::Draw(const char* label, float width)

0 commit comments

Comments
 (0)