From c8d1d0d33c0c899f17eca14c52a26e781cdc0204 Mon Sep 17 00:00:00 2001 From: Guillaume Munch Date: Sat, 3 Dec 2016 23:35:15 +0100 Subject: [PATCH] GuiSymbols: put ASCII chars first MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Having À before A was weird. This only affects GuiSymbols. --- src/Encoding.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Encoding.cpp b/src/Encoding.cpp index acb91f656f..e0b3b70789 100644 --- a/src/Encoding.cpp +++ b/src/Encoding.cpp @@ -259,16 +259,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; }