]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxsum.C
small changes + patch from Dekel
[lyx.git] / src / support / lyxsum.C
index 691ff2e71dfd45df1e1121573f30ae5325112bf0..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;
@@ -119,8 +119,3 @@ unsigned long lyx::sum(char const * file)
        return do_crc(w.begin(), w.end());
 }
 
-
-unsigned long lyx::sum(string const & file) 
-{
-       return lyx::sum(file.c_str());
-}