style cleanup

This commit is contained in:
Campbell Barton
2013-10-09 05:59:35 +00:00
parent ac908090ad
commit 22a30f78f2

View File

@@ -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;
}
}