Code cleanup: fixes for function prototypes

This commit is contained in:
Sergey Sharybin 2014-03-31 17:34:57 +06:00
parent ed775edeeb
commit a9b82244de
3 changed files with 4 additions and 4 deletions

@ -145,7 +145,7 @@ bool ImageManager::is_float_image(const string& filename, void *builtin_data, bo
return is_float;
}
static bool image_equals(ImageManager::Image *image, const string& filename, void *builtin_data, bool interpolation)
static bool image_equals(ImageManager::Image *image, const string& filename, void *builtin_data, InterpolationType interpolation)
{
return image->filename == filename &&
image->builtin_data == builtin_data &&

@ -1726,7 +1726,7 @@ static void do_makeDispListCurveTypes(Scene *scene, Object *ob, ListBase *dispba
}
}
void BKE_displist_make_curveTypes(Scene *scene, Object *ob, bool for_orco)
void BKE_displist_make_curveTypes(Scene *scene, Object *ob, const bool for_orco)
{
ListBase *dispbase;

@ -294,9 +294,9 @@ static void undo_step_num(bContext *C, UndoStack *stack, int step)
void ED_undo_paint_step_num(bContext *C, int type, int step)
{
if (type == UNDO_PAINT_IMAGE)
return undo_step_num(C, &ImageUndoStack, step);
undo_step_num(C, &ImageUndoStack, step);
else if (type == UNDO_PAINT_MESH)
return undo_step_num(C, &MeshUndoStack, step);
undo_step_num(C, &MeshUndoStack, step);
}
static char *undo_stack_get_name(UndoStack *stack, int nr, int *active)