cosmetics

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2645 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-08-31 13:27:52 +00:00
parent 0b5c26c45c
commit 6b21343d0b

View File

@ -142,7 +142,6 @@ latexkeys_a wordlist_array[] =
{"|", LM_TK_UNDEF, '|', LMB_NONE}, {"|", LM_TK_UNDEF, '|', LMB_NONE},
{"}", LM_TK_SPECIAL, '}', LMB_NONE}, {"}", LM_TK_SPECIAL, '}', LMB_NONE},
{"", LM_TK_SPECIAL, 0, LMB_NONE} {"", LM_TK_SPECIAL, 0, LMB_NONE}
}; };
@ -152,15 +151,16 @@ bool initialized = false;
} // namespace anon } // namespace anon
void ReadSymbols(string const & filename) 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; latexkeys tmp;
tmp.name = p->name; tmp.name = p->name;
tmp.token = p->token; tmp.token = p->token;
tmp.id = p->id; tmp.id = p->id;
tmp.type = p->type;
tmp.latex_font_id = 0; tmp.latex_font_id = 0;
tmp.type = p->type;
wordlist.push_back(tmp); wordlist.push_back(tmp);
} }
@ -219,10 +219,10 @@ latexkeys const * in_word_set(string const & str)
string const file = LibFileSearch(string(), "symbols"); string const file = LibFileSearch(string(), "symbols");
if (file.empty()) if (file.empty())
lyxerr << "Could not find symbols file" << endl; lyxerr << "Could not find symbols file" << endl;
else else
ReadSymbols(file); ReadSymbols(file);
initialized = true; initialized = true;
} }
std::vector<latexkeys>::iterator it = std::vector<latexkeys>::iterator it =
std::find_if(wordlist.begin(), wordlist.end(), std::find_if(wordlist.begin(), wordlist.end(),