Lines 94-107
Link Here
|
94 |
string file = dataDir + "/" + testFileName; |
94 |
string file = dataDir + "/" + testFileName; |
95 |
ifstream i(file.c_str()); |
95 |
ifstream i(file.c_str()); |
96 |
|
96 |
|
97 |
return (i != 0); |
97 |
return ((bool)i); |
98 |
} |
98 |
} |
99 |
|
99 |
|
100 |
bool Settings::checkForConfFile() { |
100 |
bool Settings::checkForConfFile() { |
101 |
string file = confDir + confFileName; |
101 |
string file = confDir + confFileName; |
102 |
ifstream i(file.c_str()); |
102 |
ifstream i(file.c_str()); |
103 |
|
103 |
|
104 |
return (i != 0); |
104 |
return ((bool)i); |
105 |
} |
105 |
} |
106 |
|
106 |
|
107 |
bool Settings::readDataDir() { |
107 |
bool Settings::readDataDir() { |
Lines 109-115
Link Here
|
109 |
ifstream i(file.c_str()); |
109 |
ifstream i(file.c_str()); |
110 |
|
110 |
|
111 |
string line; |
111 |
string line; |
112 |
if (i != 0) { |
112 |
if (i) { |
113 |
while (read_line(&i, line)) { |
113 |
while (read_line(&i, line)) { |
114 |
if (line.size()) { |
114 |
if (line.size()) { |
115 |
boost::cmatch what; |
115 |
boost::cmatch what; |