]> git.lyx.org Git - features.git/commitdiff
Minor cleanup, and some const-ness.
authorRichard Heck <rgheck@comcast.net>
Sat, 13 Mar 2010 16:55:59 +0000 (16:55 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 13 Mar 2010 16:55:59 +0000 (16:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33734 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp
src/frontends/qt4/GuiErrorList.cpp

index 8c1abfbd8cb70ff9fb646e10e8024ee3ed7e7e2b..e4e96affa31334293a17313bad5ae93d98fdfe33 100644 (file)
@@ -2971,11 +2971,11 @@ void Buffer::getSourceCode(odocstream & os, pit_type par_begin,
 ErrorList & Buffer::errorList(string const & type) const
 {
        static ErrorList emptyErrorList;
-       map<string, ErrorList>::iterator I = d->errorLists.find(type);
-       if (I == d->errorLists.end())
+       map<string, ErrorList>::iterator it = d->errorLists.find(type);
+       if (it == d->errorLists.end())
                return emptyErrorList;
 
-       return I->second;
+       return it->second;
 }
 
 
index efc82ba2adb793f6bd07f34f736a571795713899..9d1cd938f2b034c11527b316e0792f7fee396d60 100644 (file)
@@ -110,8 +110,8 @@ void GuiErrorList::paramsToDialog()
 
        ErrorList const & el = errorList();
        ErrorList::const_iterator it = el.begin();
-       ErrorList::const_iterator end = el.end();
-       for (; it != end; ++it)
+       ErrorList::const_iterator const en = el.end();
+       for (; it != en; ++it)
                errorsLW->addItem(toqstr(it->error));
        errorsLW->setCurrentRow(0);
 }