Mercurial > hg > aimc
diff src/Support/FileList.cc @ 117:c5ac2f0c7fc5
- All \t to two spaces (style guide compliance)
author | tomwalters |
---|---|
date | Fri, 15 Oct 2010 05:46:53 +0000 |
parents | c5f5e9569863 |
children | 9fcf55c040fe |
line wrap: on
line diff
--- a/src/Support/FileList.cc Fri Oct 15 05:40:53 2010 +0000 +++ b/src/Support/FileList.cc Fri Oct 15 05:46:53 2010 +0000 @@ -33,19 +33,19 @@ FILE* file_handle; vector<pair<string, string> > file_list; if ((file_handle = fopen(filename.c_str(), "r"))==NULL) { - LOG_ERROR(_T("Couldn't open file '%s' for reading."), filename.c_str()); - return file_list; - } + LOG_ERROR(_T("Couldn't open file '%s' for reading."), filename.c_str()); + return file_list; + } string out_1; string out_2; char n1[PATH_MAX]; char n2[PATH_MAX]; - while (fscanf(file_handle, "%s\t%s", n1, n2) != EOF) { + while (fscanf(file_handle, "%s\t%s", n1, n2) != EOF) { out_1 = n1; out_2 = n2; file_list.push_back(make_pair(out_1, out_2)); - } + } fclose(file_handle); return file_list; }