]> git.lyx.org Git - lyx.git/blobdiff - src/chset.C
Fix fuer #209
[lyx.git] / src / chset.C
index a6ac394b4be33c1a47b4d3ad55709251fe9b2acd..277f7db184d66fe78ccf6f34e66f84c8f9b17e37 100644 (file)
@@ -44,7 +44,7 @@ bool CharacterSet::loadFile(string const & fname)
        // was a bit neat. Anyway it is wrong to use the lyxlex parse
        // without the use of a keyword table.     
        LRegex reg("^([12][0-9][0-9])[ \t]+\"([^ ]+)\".*");
-       while(getline(ifs, line)) {
+       while (getline(ifs, line)) {
                if (reg.exact_match(line)) {
                        LRegex::SubMatches const & sub = reg.exec(line);
                        int const n = lyx::atoi(line.substr(sub[1].first,
@@ -70,7 +70,7 @@ pair<bool, int> const CharacterSet::encodeString(string const & str) const
        Cdef::const_iterator cit = map_.find(str);
        if (cit != map_.end()) {
                ret =  true;
-               val = (*cit).second;
+               val = cit->second;
        }
        lyxerr[Debug::KBMAP] << "   "
                             << (ret ? "yes we" : "no we don't")