forked from bartvdbraak/blender
Cleanup: use const char for stats arg
This commit is contained in:
parent
3d305b5a37
commit
59b578e320
@ -76,7 +76,7 @@ ExecutionSystem::ExecutionSystem(RenderData *rd, Scene *scene, bNodeTree *editin
|
||||
viewer_border->xmin < viewer_border->xmax &&
|
||||
viewer_border->ymin < viewer_border->ymax;
|
||||
|
||||
editingtree->stats_draw(editingtree->sdh, (char*)"Compositing | Determining resolution");
|
||||
editingtree->stats_draw(editingtree->sdh, "Compositing | Determining resolution");
|
||||
|
||||
for (index = 0; index < this->m_groups.size(); index++) {
|
||||
resolution[0] = 0;
|
||||
|
@ -162,7 +162,7 @@ static int compo_breakjob(void *cjv)
|
||||
}
|
||||
|
||||
/* called by compo, wmJob sends notifier */
|
||||
static void compo_statsdrawjob(void *cjv, char *UNUSED(str))
|
||||
static void compo_statsdrawjob(void *cjv, const char *UNUSED(str))
|
||||
{
|
||||
CompoJob *cj = cjv;
|
||||
|
||||
|
@ -383,7 +383,7 @@ typedef struct bNodeTree {
|
||||
|
||||
/* callbacks */
|
||||
void (*progress)(void *, float progress);
|
||||
void (*stats_draw)(void *, char *str);
|
||||
void (*stats_draw)(void *, const char *str);
|
||||
int (*test_break)(void *);
|
||||
void (*update_draw)(void *);
|
||||
void *tbh, *prh, *sdh, *udh;
|
||||
|
@ -1956,7 +1956,7 @@ static void ntree_render_scenes(Render *re)
|
||||
}
|
||||
|
||||
/* bad call... need to think over proper method still */
|
||||
static void render_composit_stats(void *UNUSED(arg), char *str)
|
||||
static void render_composit_stats(void *UNUSED(arg), const char *str)
|
||||
{
|
||||
R.i.infostr = str;
|
||||
R.stats_draw(R.sdh, &R.i);
|
||||
|
Loading…
Reference in New Issue
Block a user