Fix a lot of warnings, thanks to ejtttje, Fixes issue 537
Fix soft body debug rendering
This commit is contained in:
@@ -2155,7 +2155,7 @@ public:
|
||||
void set_text( const char *text );
|
||||
const char *get_text( void ) { return text.c_str(); }
|
||||
|
||||
void dump( FILE *out, char *text );
|
||||
void dump( FILE *out, const char *text );
|
||||
void set_tab_w(int w) { tab_width = w; }
|
||||
void set_start_line(int l) { start_line = l; }
|
||||
static void scrollbar_callback(GLUI_Control*);
|
||||
|
||||
@@ -931,7 +931,7 @@ int GLUI_EditText::special_handler( int key,int modifiers )
|
||||
int GLUI_EditText::find_word_break( int start, int direction )
|
||||
{
|
||||
int i, j;
|
||||
char *breaks = " :-.,";
|
||||
const char *breaks = " :-.,";
|
||||
int num_break_chars = (int)strlen(breaks), text_len = (int)text.length();
|
||||
int new_pt;
|
||||
|
||||
|
||||
@@ -1065,10 +1065,10 @@ void GLUI_TextBox::set_text( const char *new_text )
|
||||
|
||||
/*************************************** GLUI_TextBox::dump() **************/
|
||||
|
||||
void GLUI_TextBox::dump( FILE *out, char *name )
|
||||
void GLUI_TextBox::dump( FILE *out, const char *name )
|
||||
{
|
||||
fprintf( out,
|
||||
"%s (edittext@%p): line:%d ins_pt:%d subs:%d/%d sel:%d/%d len:%d\n",
|
||||
"%s (edittext@%p): line:%d ins_pt:%d subs:%d/%d sel:%d/%d len:%zu\n",
|
||||
name, this, curr_line,
|
||||
insertion_pt, substring_start, substring_end, sel_start, sel_end,
|
||||
text.length());
|
||||
|
||||
Reference in New Issue
Block a user