]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxsum.C
use more explicit on constructors use the pimpl idom to reduce size with about 500k
[lyx.git] / src / support / lyxsum.C
index 267413ce4229eb097537cdba0d109e6eeab57a2a..26028bb1030ed83d8edabeac7f483a8de61e4455 100644 (file)
@@ -119,7 +119,9 @@ unsigned long lyx::sum(char const * file)
 #ifdef HAVE_SSTREAM
        ostringstream ostr;
        ostr << ifs.rdbuf();
-       string w = ostr.str();
+       // The .c_str() is here in case we use our lyxstring class
+       // instead of standard string. 
+       string w = ostr.str().c_str();
        return do_crc(w.begin(), w.end());
 #else
        ostrstream ostr;