X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FPersonalWordList.cpp;h=ca61d8a17106f5577c9d66de2308eb52b4a7355e;hb=4ed0312c51704780af1c452d3a82a84171b3725a;hp=665eb331b573ba45ecebbeb8dab558ec165bdf80;hpb=6b2232a29c682d8e62d1d2b963bb1a70bee4330b;p=lyx.git diff --git a/src/PersonalWordList.cpp b/src/PersonalWordList.cpp index 665eb331b5..ca61d8a171 100644 --- a/src/PersonalWordList.cpp +++ b/src/PersonalWordList.cpp @@ -17,15 +17,12 @@ #include "support/filetools.h" #include "support/Package.h" #include "support/FileName.h" -#include "support/lstrings.h" -#include "support/os.h" #include #include using namespace std; using namespace lyx::support; -using namespace lyx::support::os; namespace lyx { @@ -54,7 +51,7 @@ void PersonalWordList::load() LYXERR(Debug::FILES, "load personal dictionary from: " << fn); ifstream ifs(fn.toFilesystemEncoding().c_str()); - dirty(words_.size() > 0); + dirty(!words_.empty()); words_.clear(); string line; getline(ifs, line);