X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FEncoding.cpp;h=9dde12d1213fc6d06e80ba0d28d27345605e1c39;hb=9926927fb1a38f15ec4fa1334075720925a3295e;hp=acb91f656fbed521208fb55ffe868444ef2cd6ef;hpb=cb7094696095236b9a7133f41901e90aee767544;p=lyx.git diff --git a/src/Encoding.cpp b/src/Encoding.cpp index acb91f656f..9dde12d121 100644 --- a/src/Encoding.cpp +++ b/src/Encoding.cpp @@ -25,8 +25,9 @@ #include -#include +#include #include +#include using namespace std; using namespace lyx::support; @@ -259,16 +260,15 @@ vector Encoding::symbolsList() const // assure the used encoding is properly initialized init(); - // first all encodable characters - vector symbols(encodable_.begin(), encodable_.end()); - // add those below start_encodable_ + // first all those below start_encodable_ + vector symbols; for (char_type c = 0; c < start_encodable_; ++c) symbols.push_back(c); + //add all encodable characters + copy(encodable_.begin(), encodable_.end(), back_inserter(symbols)); // now the ones from the unicodesymbols file - CharInfoMap::const_iterator const end = unicodesymbols.end(); - CharInfoMap::const_iterator it = unicodesymbols.begin(); - for (; it != end; ++it) - symbols.push_back(it->first); + for (pair const & elem : unicodesymbols) + symbols.push_back(elem.first); return symbols; }