You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/fbdesk/files/fbdesk-1.4.1-fix-c++14.patch

23 lines
624 B

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);