1
0
Fork 0

source/Graphics/Image.cpp: minor style fix.

This commit is contained in:
Henrik Hautakoski 2022-10-03 22:11:26 +02:00
parent 0a5eb397c7
commit 82343f0835

View file

@ -198,10 +198,7 @@ void Image::setPixels(const void *pixels, PixelFormat format)
const unsigned char* Image::getPixels() const
{
if (m_pixels.size()) {
return &m_pixels[0];
}
return NULL;
return m_pixels.size() ? &m_pixels[0] : NULL;
}
} // namespace sp