X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FAuthor.cpp;h=f1d346ea75619429cebd664ee4ea620097eb4f93;hb=55a3dd7b346d29a52ba305a4558e9e380ef50f47;hp=91974b9c2efadabdab16e69ba067eccd32719479;hpb=badbd3dcc344f125e301a795c33d2c67cde8d97e;p=lyx.git diff --git a/src/Author.cpp b/src/Author.cpp index 91974b9c2e..f1d346ea75 100644 --- a/src/Author.cpp +++ b/src/Author.cpp @@ -26,7 +26,7 @@ namespace lyx { static int computeHash(docstring const & name, docstring const & email) { - string const full_author_string = to_ascii(name + email); + string const full_author_string = to_utf8(name + email); // Bernstein's hash function unsigned int hash = 5381; for (unsigned int i = 0; i < full_author_string.length(); ++i) @@ -51,8 +51,8 @@ bool operator==(Author const & l, Author const & r) ostream & operator<<(ostream & os, Author const & a) { // FIXME UNICODE - os << a.buffer_id() << " \"" << to_utf8(a.name()) - << "\" " << to_utf8(a.email()); + os << a.buffer_id_ << " \"" << to_utf8(a.name_) + << "\" " << to_utf8(a.email_); return os; } @@ -70,7 +70,7 @@ istream & operator>>(istream & is, Author & a) bool author_smaller(Author const & lhs, Author const & rhs) { - return lhs.buffer_id() < rhs.buffer_id(); + return lhs.bufferId() < rhs.bufferId(); } @@ -86,7 +86,7 @@ int AuthorList::record(Author const & a) // author, we copy the buffer_id, so that it will // keep the same id in the file. if (authors_.size() > 0 && a == authors_[0]) - authors_[0].setBufferId(a.buffer_id()); + authors_[0].setBufferId(a.bufferId()); Authors::const_iterator it(authors_.begin()); Authors::const_iterator itend(authors_.end());