]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxsum.C
Add a bunch of c_str() for string stream uses; remove lyxfunc symbol-insert.
[lyx.git] / src / support / lyxsum.C
index e018073f2bea25095d021baeb0b56195d42559f4..8980a3f8ae91843a0357cd8c5406fbe4311fa7fb 100644 (file)
@@ -106,9 +106,9 @@ unsigned long do_crc(InputIterator first, InputIterator last)
 
 
 // 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;
@@ -118,3 +118,4 @@ unsigned long lyx::sum(char const * file)
        string w = ostr.str().c_str();
        return do_crc(w.begin(), w.end());
 }
+