Line 0
Link Here
|
|
|
1 |
--- lib/srchilite/settings.cpp.orig 2018-01-12 13:52:53 UTC |
2 |
+++ lib/srchilite/settings.cpp |
3 |
@@ -94,14 +94,14 @@ bool Settings::checkForTestFile() { |
4 |
string file = dataDir + "/" + testFileName; |
5 |
ifstream i(file.c_str()); |
6 |
|
7 |
- return (i != 0); |
8 |
+ return (i != '\0'); |
9 |
} |
10 |
|
11 |
bool Settings::checkForConfFile() { |
12 |
string file = confDir + confFileName; |
13 |
ifstream i(file.c_str()); |
14 |
|
15 |
- return (i != 0); |
16 |
+ return (i != '\0'); |
17 |
} |
18 |
|
19 |
bool Settings::readDataDir() { |
20 |
@@ -109,7 +109,7 @@ bool Settings::readDataDir() { |
21 |
ifstream i(file.c_str()); |
22 |
|
23 |
string line; |
24 |
- if (i != 0) { |
25 |
+ if (i != '\0') { |
26 |
while (read_line(&i, line)) { |
27 |
if (line.size()) { |
28 |
boost::cmatch what; |