From 6b21343d0bfef1de30b61acd897d76e56f51f562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 31 Aug 2001 13:27:52 +0000 Subject: [PATCH] cosmetics git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2645 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_hash.C | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mathed/math_hash.C b/src/mathed/math_hash.C index 281bc35c6d..17833dc609 100644 --- a/src/mathed/math_hash.C +++ b/src/mathed/math_hash.C @@ -142,7 +142,6 @@ latexkeys_a wordlist_array[] = {"|", LM_TK_UNDEF, '|', LMB_NONE}, {"}", LM_TK_SPECIAL, '}', LMB_NONE}, {"", LM_TK_SPECIAL, 0, LMB_NONE} - }; @@ -152,15 +151,16 @@ bool initialized = false; } // namespace anon + void ReadSymbols(string const & filename) { - for(latexkeys_a * p = wordlist_array; !string(p->name).empty(); ++p) { + for (latexkeys_a * p = wordlist_array; !string(p->name).empty(); ++p) { latexkeys tmp; - tmp.name = p->name; - tmp.token = p->token; - tmp.id = p->id; + tmp.name = p->name; + tmp.token = p->token; + tmp.id = p->id; + tmp.type = p->type; tmp.latex_font_id = 0; - tmp.type = p->type; wordlist.push_back(tmp); } @@ -219,10 +219,10 @@ latexkeys const * in_word_set(string const & str) string const file = LibFileSearch(string(), "symbols"); if (file.empty()) lyxerr << "Could not find symbols file" << endl; - else + else ReadSymbols(file); initialized = true; - } + } std::vector::iterator it = std::find_if(wordlist.begin(), wordlist.end(),