summaryrefslogtreecommitdiff
path: root/x11-misc/fbdesk/files/fbdesk-1.4.1-fix-c++14.patch
blob: 85ee0f94567e64897900baca433e28fb33369559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Fix building with C++14, which errors out due to bool -> T* conversions
See also: https://bugs.gentoo.org/show_bug.cgi?id=594052

--- a/src/FbTk/Image.cc
+++ b/src/FbTk/Image.cc
@@ -85,14 +85,14 @@
 
 
     if (filename == "")
-        return false;
+        return NULL;
 
     // determine file ending
     std::string extension(StringUtil::toUpper(StringUtil::findExtension(filename)));
     
     // valid handle?
     if (s_image_map.find(extension) == s_image_map.end())
-        return false;
+        return NULL;
     
     // load file
     PixmapWithMask *pm = s_image_map[extension]->load(filename, screen_num);