X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FPersonalWordList.cpp;h=665eb331b573ba45ecebbeb8dab558ec165bdf80;hb=28be7d552f62cc02fa86d7f79201d089bfb2d7b5;hp=87187e912fd35852773b43a58a8aefd1c4658772;hpb=6be43c24f443c2ebac928b95218532703a1d9b7d;p=lyx.git diff --git a/src/PersonalWordList.cpp b/src/PersonalWordList.cpp index 87187e912f..665eb331b5 100644 --- a/src/PersonalWordList.cpp +++ b/src/PersonalWordList.cpp @@ -61,7 +61,7 @@ void PersonalWordList::load() if (line == header()) { while (ifs) { getline(ifs, line); - if (!line.empty() && !line[0] == '#') { + if (!line.empty() && !(line[0] == '#')) { docstring const word = from_utf8(line); insert(word); } @@ -86,14 +86,13 @@ void PersonalWordList::save() docstring_list::const_iterator et = words_.end(); ofs << header() << "\n"; - ofs << "# encoding: utf-8\n"; - ofs << "# one word per line\n"; for (; it != et; ++it) { ofs << to_utf8(*it) << "\n"; } LYXERR(Debug::FILES, "count of saved items: " << words_.size()); } + bool PersonalWordList::equalwords(docstring const & w1, docstring const & w2) const { return w1 == w2;