// And this would be the file interface.
-unsigned long lyx::sum(char const * file)
+unsigned long lyx::sum(string const & file)
{
- ifstream ifs(file);
+ ifstream ifs(file.c_str());
if (!ifs) return 0;
ifs.unsetf(ios::skipws);
ostringstream ostr;
string w = ostr.str().c_str();
return do_crc(w.begin(), w.end());
}
+