File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3131using namespace std ;
3232
3333// Function to check whether there is a file given at a specific path
34- bool findFile (string path) {
34+ bool findFile (string path)
35+ {
3536
3637 // Opens the file at specified path
3738 ifstream newFile (path);
3839
3940 // Checks if file is opened properly, otherwise results in an error and returns false
40- if (newFile.is_open ()) {
41+ if (newFile.is_open ()) {
4142
4243 // Use good() to check if the file exists
4344 bool found = newFile.good ();
@@ -75,7 +76,7 @@ int main(int argc, char *argv[])
7576
7677 // Checks whether the file is in the home directory
7778 // otherwise uses the file in RuntimeFiles
78- if (findFile (absPath)) {
79+ if (findFile (absPath)) {
7980 ::log4cplus::PropertyConfigurator::doConfigure (absPath);
8081 } else {
8182 ::log4cplus::PropertyConfigurator::doConfigure (" RuntimeFiles/log4cplus_configure.ini" );
You can’t perform that action at this time.
0 commit comments