Browse Source

Make validInVarname a QVector rather than a QLinkedList (more efficient).

git-svn-id: file:///var/svn/tigccpp/trunk@1068 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 17 years ago
parent
commit
6d23a2ff43
1 changed files with 5 additions and 5 deletions
  1. 5 5
      ktigcc/mainform.cpp

+ 5 - 5
ktigcc/mainform.cpp

@@ -93,6 +93,7 @@ class DnDListView : public K3ListView {
 #include <QTimerEvent>
 #include <Q3PtrList>
 #include <QList>
+#include <QVector>
 #include <QDragMoveEvent>
 #include <QDragLeaveEvent>
 #include <QKeyEvent>
@@ -101,7 +102,6 @@ class DnDListView : public K3ListView {
 #include <QDropEvent>
 #include <Q3PopupMenu>
 #include <QDragEnterEvent>
-#include <QLinkedList>
 #include <QPixmap>
 #include <QMouseEvent>
 #include <QCloseEvent>
@@ -6084,7 +6084,7 @@ void MainForm::fileTreeItemRenamed( Q3ListViewItem *item, const QString &newName
     return;
   if (item==rootListItem) {
     // validate name, fix if invalid
-    QLinkedList<QChar> validInVarname;
+    QVector<QChar> validInVarname;
     #define V(i) validInVarname.append(QChar(i))
     #define VR(m,n) for(unsigned i=m;i<=n;i++)V(i)
     VR(48,57); // 0..9
@@ -6092,9 +6092,9 @@ void MainForm::fileTreeItemRenamed( Q3ListViewItem *item, const QString &newName
     V(95); // _
     VR(97,122); // a..z
     V(181); // mu
-    VR(192,214); // À..Ö
-    VR(216,246); // Ø..ö
-    VR(248,255); // ø..ÿ
+    VR(192,214); // À..Ö
+    VR(216,246); // Ø..ö
+    VR(248,255); // ø..ÿ
     VR(0x3b1,0x3b6);V(0x3b8);V(0x3bb);V(0x3be);V(0x3c1);V(0x3c3);V(0x3c4);
     V(0x3c6);V(0x3c8);V(0x3c9); // small Greek letters
     V(0x393);V(0x394);V(0x3a0);V(0x3a3);V(0x3a9); // capital Greek letters