Browse Source

Fix duplicate loop (once with iterators and once with foreach, keep only the foreach).

git-svn-id: file:///var/svn/tigccpp/trunk@1066 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 17 years ago
parent
commit
57d66c7199
1 changed files with 0 additions and 3 deletions
  1. 0 3
      ktigcc/completion.cpp

+ 0 - 3
ktigcc/completion.cpp

@@ -540,9 +540,6 @@ TemplatePopup::TemplatePopup(KTextEditor::View *parent)
 {
   connect(this,SIGNAL(activated(int)),this,SLOT(QPopupMenu_activated(int)));
   unsigned i=0;
-  for (QLinkedList<QPair<QString,QString> >::ConstIterator it=preferences.templates.begin();
-       it!=preferences.templates.end(); ++it, i++)
-    insertItem((*it).first,i);
   typedef const QPair<QString,QString> &StringPairConstRef;
   foreach (StringPairConstRef pair, preferences.templates)
     insertItem(pair.first, i++);