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.
1 parent 55d6518 commit 36d78e05651877c69eab0e4aea48cd20d4ce8f9c
@Nicolas Guillemot Nicolas Guillemot authored on 4 Dec 2016
Showing 2 changed files
View
imgui.cpp
View
imgui.h