style cleanup
This commit is contained in:
@@ -58,8 +58,7 @@ using namespace std;
|
||||
typedef unsigned char uchar;
|
||||
|
||||
template <class T, class Q>
|
||||
static void
|
||||
fill_all_channels(T * pixels, int width, int height, int components, Q alpha)
|
||||
static void fill_all_channels(T *pixels, int width, int height, int components, Q alpha)
|
||||
{
|
||||
if (components == 2) {
|
||||
for (int i = width * height - 1; i >= 0; i--) {
|
||||
@@ -241,14 +240,14 @@ struct ImBuf *imb_load_photoshop (const char *filename, int flags, char colorspa
|
||||
|
||||
try
|
||||
{
|
||||
return(ibuf);
|
||||
return ibuf;
|
||||
}
|
||||
catch (const std::exception &exc)
|
||||
{
|
||||
std::cerr << exc.what() << std::endl;
|
||||
if (ibuf) IMB_freeImBuf(ibuf);
|
||||
|
||||
return (0);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user