19 lines
453 B
Diff
19 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;
|
||
|
}
|
||
|
|