Cleanup: redundant 'break', minor edits
This commit is contained in:
parent
b8c40d47e0
commit
ae8e4d3718
2
extern/wcwidth/wcwidth.c
vendored
2
extern/wcwidth/wcwidth.c
vendored
@ -61,6 +61,8 @@
|
||||
|
||||
#include <wchar.h>
|
||||
|
||||
#include "wcwidth.h"
|
||||
|
||||
struct interval {
|
||||
int first;
|
||||
int last;
|
||||
|
@ -53,14 +53,14 @@ public:
|
||||
/**
|
||||
* Determine the base dir in which shared resources are located. It will first try to use
|
||||
* "unpack and run" path, then look for properly installed path, including versioning.
|
||||
* \return Unsigned char string pointing to system dir (eg /usr/share/blender/).
|
||||
* \return Unsigned char string pointing to system dir (eg `/usr/share/blender/`).
|
||||
*/
|
||||
const GHOST_TUns8 *getSystemDir(int version, const char *versionstr) const;
|
||||
|
||||
/**
|
||||
* Determine the base dir in which user configuration is stored, including versioning.
|
||||
* If needed, it will create the base directory.
|
||||
* \return Unsigned char string pointing to user dir (eg ~/.blender/).
|
||||
* \return Unsigned char string pointing to user dir (eg `~/.config/.blender/`).
|
||||
*/
|
||||
const GHOST_TUns8 *getUserDir(int version, const char *versionstr) const;
|
||||
|
||||
|
@ -357,7 +357,6 @@ static MeshRemapIslandsCalc data_transfer_get_loop_islands_generator(const int c
|
||||
switch (cddata_type) {
|
||||
case CD_FAKE_UV:
|
||||
return BKE_mesh_calc_islands_loop_poly_uv;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -512,10 +512,8 @@ static bool ch_is_op(char op)
|
||||
case '=':
|
||||
case '%':
|
||||
return true;
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -302,7 +302,7 @@ static void screen_opengl_render_doit(OGLRender *oglrender, RenderResult *rr)
|
||||
if (gpd) {
|
||||
int i;
|
||||
unsigned char *gp_rect;
|
||||
unsigned char *rect = (unsigned char*)RE_RenderViewGetById(rr, oglrender->view_id)->rect32;
|
||||
unsigned char *rect = (unsigned char *)RE_RenderViewGetById(rr, oglrender->view_id)->rect32;
|
||||
|
||||
GPU_offscreen_bind(oglrender->ofs, true);
|
||||
|
||||
|
@ -564,7 +564,6 @@ BlurKernel *paint_new_blur_kernel(Brush *br, bool proj)
|
||||
MEM_freeN(kernel->wdata);
|
||||
MEM_freeN(kernel);
|
||||
return NULL;
|
||||
break;
|
||||
}
|
||||
|
||||
return kernel;
|
||||
|
@ -600,7 +600,6 @@ ImBuf *imb_loadpng(const unsigned char *mem, size_t size, int flags, char colors
|
||||
default:
|
||||
printf("PNG format not supported\n");
|
||||
longjmp(png_jmpbuf(png_ptr), 1);
|
||||
break;
|
||||
}
|
||||
|
||||
ibuf = IMB_allocImBuf(width, height, 8 * bytesperpixel, 0);
|
||||
|
@ -3963,13 +3963,10 @@ bool RE_layers_have_name(struct RenderResult *rr)
|
||||
switch (BLI_listbase_count_ex(&rr->layers, 2)) {
|
||||
case 0:
|
||||
return false;
|
||||
break;
|
||||
case 1:
|
||||
return (((RenderLayer *)rr->layers.first)->name[0] != '\0');
|
||||
break;
|
||||
default:
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user