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