]> git.lyx.org Git - features.git/commitdiff
Remove redundant code.
authorRichard Heck <rgheck@comcast.net>
Thu, 12 Nov 2009 00:26:49 +0000 (00:26 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 12 Nov 2009 00:26:49 +0000 (00:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31953 a592a061-630c-0410-9148-cb99ea01b6c8

src/Converter.cpp

index 86ad195cbad622f274986c1a8c1a1eae682ace90..c8d0b119159f7d21cf1f69a0e52c3b3360540270 100644 (file)
@@ -637,12 +637,12 @@ void Converters::buildGraph()
 {
        // clear graph's data structures
        G_.init(formats.size());
-       ConverterList::iterator beg = converterlist_.begin();
-       ConverterList::iterator const end = converterlist_.end();
        // each of the converters knows how to convert one format to another
        // so, for each of them, we create an arrow on the graph, going from 
        // the one to the other
-       for (ConverterList::iterator it = beg; it != end ; ++it) {
+       ConverterList::iterator it = converterlist_.begin();
+       ConverterList::iterator const end = converterlist_.end();
+       for (; it != end ; ++it) {
                int const from = formats.getNumber(it->from);
                int const to   = formats.getNumber(it->to);
                G_.addEdge(from, to);