python.pkgs.pysideShiboken: fix gcc6 build

This commit is contained in:
Jörg Thalheim
2017-08-26 09:14:51 +01:00
parent a580bedcf1
commit 48f337a882
2 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
--- Shiboken-1.2.4.org/tests/libsample/simplefile.cpp 2017-08-26 09:06:27.216859143 +0100
+++ Shiboken-1.2.4/tests/libsample/simplefile.cpp 2017-08-26 09:05:40.037029652 +0100
@@ -90,13 +90,13 @@
SimpleFile::exists() const
{
std::ifstream ifile(p->m_filename);
- return ifile;
+ return (bool)ifile;
}
bool
SimpleFile::exists(const char* filename)
{
std::ifstream ifile(filename);
- return ifile;
+ return (bool)ifile;
}