8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
18 lines
453 B
Diff
18 lines
453 B
Diff
--- 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;
|
|
}
|
|
|