Skip to content

Commit 6fb5511

Browse files
author
Padmanabh Patil
committed
Updated Personal Development branch
1 parent 3142dae commit 6fb5511

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Simulator/Core/Graphitti_Main.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@
3131
using 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");

0 commit comments

Comments
 (0)