Fix a pair of warnings reported by clang
This commit is contained in:
parent
91958279d3
commit
a83cedf37e
1 changed files with 2 additions and 2 deletions
|
@ -67,14 +67,14 @@ PixmapWithMask *Image::load(const string &filename, int screen_num) {
|
|||
|
||||
|
||||
if (filename.empty())
|
||||
return false;
|
||||
return NULL;
|
||||
|
||||
// determine file ending
|
||||
string extension(StringUtil::toUpper(StringUtil::findExtension(filename)));
|
||||
|
||||
// valid handle?
|
||||
if (s_image_map.find(extension) == s_image_map.end())
|
||||
return false;
|
||||
return NULL;
|
||||
|
||||
string path = locateFile(filename);
|
||||
if (!path.empty())
|
||||
|
|
Loading…
Reference in a new issue