View | Details | Raw Unified | Return to bug 216047
Collapse All | Expand All

(-)files/patch-tests_libsample_simplefile.cpp (+21 lines)
Line 0 Link Here
1
--- tests/libsample/simplefile.cpp.orig	2018-01-31 17:26:30 UTC
2
+++ tests/libsample/simplefile.cpp
3
@@ -90,13 +90,13 @@ bool
4
 SimpleFile::exists() const
5
 {
6
     std::ifstream ifile(p->m_filename);
7
-    return ifile;
8
+    return static_cast<bool>(ifile);
9
 }
10
 
11
 bool
12
 SimpleFile::exists(const char* filename)
13
 {
14
     std::ifstream ifile(filename);
15
-    return ifile;
16
+    return static_cast<bool>(ifile);
17
 }
18
 
19
yes
20
native
21
text/plain

Return to bug 216047