]> git.lyx.org Git - features.git/commitdiff
fix msvc warning, somehow msvc thinks !line[0] is a boolean
authorPeter Kümmel <syntheticpp@gmx.net>
Mon, 14 Feb 2011 19:54:04 +0000 (19:54 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Mon, 14 Feb 2011 19:54:04 +0000 (19:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37662 a592a061-630c-0410-9148-cb99ea01b6c8

src/PersonalWordList.cpp

index a0a8726eb61f5fe26d18d60e8cc4770bc59684a9..75dcda6aa70d8d2a786520c4fbc090e17666e23e 100644 (file)
@@ -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);
                        }