please use const char* they say

This commit is contained in:
Andrey 2021-06-26 01:39:04 -04:00
parent 8cfcdad536
commit f9fba433e6
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ static char* trim(char *str) {
return str; return str;
} }
void CsvReader::open(char *fileName, int *columnIndeces) { void CsvReader::open(const char *fileName, int *columnIndeces) {
fp = fopen(fileName, "r"); fp = fopen(fileName, "r");
this->columnIndeces = columnIndeces; this->columnIndeces = columnIndeces;
ASSERT_TRUE(fp != nullptr); ASSERT_TRUE(fp != nullptr);

View File

@ -19,7 +19,7 @@ public:
int * columnIndeces; int * columnIndeces;
void open(char *fileName, int * columnIndeces); void open(const char *fileName, int * columnIndeces);
bool haveMore(); bool haveMore();
void processLine(EngineTestHelper *eth); void processLine(EngineTestHelper *eth);
void readLine(EngineTestHelper *eth); void readLine(EngineTestHelper *eth);