MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / containerOutOfBounds_wxArrayInt

Function containerOutOfBounds_wxArrayInt

test/cfg/wxwidgets.cpp:949–957  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

947}
948
949int containerOutOfBounds_wxArrayInt(void)
950{
951 wxArrayInt a;
952 a.Add(42);
953 a.Clear();
954 // TODO: wxArrayString is defined to be a vector
955 // TODO: cppcheck-suppress containerOutOfBounds
956 return a[0];
957}
958
959void ignoredReturnValue_wxDC_GetSize(const wxDC &dc, wxCoord *width, wxCoord *height)
960{

Callers

nothing calls this directly

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected