source/Graphics/Image.cpp: minor style fix.
This commit is contained in:
parent
0a5eb397c7
commit
82343f0835
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue