]> git.lyx.org Git - features.git/commitdiff
fix MSVC warning
authorAbdelrazak Younes <younes@lyx.org>
Tue, 20 May 2008 11:24:12 +0000 (11:24 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 20 May 2008 11:24:12 +0000 (11:24 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24864 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/preamble.cpp

index 6f71f7f93983623731308a4899ae2e3a0e4dd76c..4a8968c2e0107b784778b756c234f13b8d545a6e 100644 (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);