From 82343f0835d690c03ba9ed3ea03ee0cc8e849dbe Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 3 Oct 2022 22:11:26 +0200 Subject: [PATCH] source/Graphics/Image.cpp: minor style fix. --- source/Graphics/Image.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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