ccmake: Use more-portable call to set_field_buffer (#15740)
The set_field_buffer function on NetBSD and Solaris: http://netbsd.gw.com/cgi-bin/man-cgi?set_field_buffer++NetBSD-current https://docs.oracle.com/cd/E36784_01/html/E36880/set-field-buffer-3curses.html has as third argument "char *" while ncurses has "const char *". Cast the argument type in our call to account for the missing "const".
This commit is contained in:
parent
da1a02f77f
commit
7046eedd38
|
@ -49,7 +49,7 @@ void cmCursesWidget::Move(int x, int y, bool isNewPage)
|
||||||
void cmCursesWidget::SetValue(const std::string& value)
|
void cmCursesWidget::SetValue(const std::string& value)
|
||||||
{
|
{
|
||||||
this->Value = value;
|
this->Value = value;
|
||||||
set_field_buffer(this->Field, 0, value.c_str());
|
set_field_buffer(this->Field, 0, const_cast<char *>(value.c_str()));
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* cmCursesWidget::GetValue()
|
const char* cmCursesWidget::GetValue()
|
||||||
|
|
Loading…
Reference in New Issue