diff --git a/source/Graphics/Image.cpp b/source/Graphics/Image.cpp index cb469b1..cb111b1 100644 --- a/source/Graphics/Image.cpp +++ b/source/Graphics/Image.cpp @@ -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