blob: 65734232472c8c920b7bc7d299c62df6fb66c44f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Bug: https://bugs.gentoo.org/619332
PR: https://github.com/pyside/Shiboken/pull/84
--- a/tests/libsample/simplefile.cpp
+++ b/tests/libsample/simplefile.cpp
@@ -90,13 +90,13 @@ bool
SimpleFile::exists() const
{
std::ifstream ifile(p->m_filename);
- return ifile;
+ return static_cast<bool>(ifile);
}
bool
SimpleFile::exists(const char* filename)
{
std::ifstream ifile(filename);
- return ifile;
+ return static_cast<bool>(ifile);
}
|