fix MSVC warning

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24864 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-05-20 11:24:12 +00:00
parent 81ca2da2d4
commit 31517754ad

View File

@ -746,7 +746,7 @@ void parse_preamble(Parser & p, ostream & os,
for (; *margin; ++margin) {
k += 1;
// search for the "=" in e.g. "lmargin=2cm" to get the value
for(int i = 0; i < opts.size(); i++) {
for(size_t i = 0; i != opts.size(); i++) {
if (opts.at(i).find(*margin) != string::npos) {
string::size_type pos = opts.at(i).find("=");
string value = opts.at(i).substr(pos + 1);