added missing const

This commit is contained in:
Efi Fogel 2007-04-03 17:58:20 +00:00
parent 6a7eed25d7
commit e6f37542fa
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ int main (int argc, char **argv)
{
// Get the name of the input file from the command line, or use the default
// points.dat file if no command-line parameters are given.
char * filename = (argc > 1) ? argv[1] : "points.dat";
const char * filename = (argc > 1) ? argv[1] : "points.dat";
// Open the input file.
std::ifstream in_file (filename);