diff options
Diffstat (limited to 'Source/cmDirectory.cxx')
-rw-r--r-- | Source/cmDirectory.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmDirectory.cxx b/Source/cmDirectory.cxx index 9b4d03b..a72065a 100644 --- a/Source/cmDirectory.cxx +++ b/Source/cmDirectory.cxx @@ -50,7 +50,7 @@ cmDirectory buf = new char[n + 2 + 1]; sprintf(buf, "%s/*", name); } - struct _finddata_t data; // data of current file + struct _finddata_t data; // data of current file // Now put them into the file array size_t srchHandle = _findfirst(buf, &data); @@ -109,13 +109,13 @@ cmDirectory */ const char* cmDirectory -::GetFile(size_t index) +::GetFile(size_t dindex) { - if ( index >= m_Files.size() ) + if ( dindex >= m_Files.size() ) { cmSystemTools::Error("Bad index for GetFile on cmDirectory\n", 0); return 0; } - return m_Files[index].c_str(); + return m_Files[dindex].c_str(); } |