const correctness for Combo and ListBox
Since Combo and ListBox only read and display the list of items, they should not modify the pointers inside the array of pointers passed in. Adding "const" here makes it possible to call these functions with such an array of const pointers. Previously, a cast to "const char**" was required as a workaround, otherwise there was a compile error. |
---|
|
imgui.cpp |
---|
imgui.h |
---|