[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kate/part
From: Christoph Cullmann <crossfire () babylon2k ! de>
Date: 2004-08-25 20:58:55
Message-ID: 20040825205855.26C3B90E7 () office ! kde ! org
[Download RAW message or body]
CVS commit by cullmann:
more ptrlist away
M +1 -1 katehighlight.cpp 1.178
M +2 -1 katesyntaxdocument.cpp 1.47
M +2 -3 katesyntaxdocument.h 1.27
--- kdelibs/kate/part/katehighlight.cpp #1.177:1.178
@@ -2755,5 +2755,5 @@ KateHlManager::KateHlManager()
for (uint i=0; i < modeList.count(); i++)
{
- KateHighlighting *hl = new KateHighlighting(modeList.at(i));
+ KateHighlighting *hl = new KateHighlighting(modeList[i]);
uint insert = 0;
--- kdelibs/kate/part/katesyntaxdocument.cpp #1.46:1.47
@@ -37,9 +37,10 @@ KateSyntaxDocument::KateSyntaxDocument(b
// Let's build the Mode List (katesyntaxhighlightingrc)
setupModeList(force);
- myModeList.setAutoDelete( true );
}
KateSyntaxDocument::~KateSyntaxDocument()
{
+ for (uint i=0; i < myModeList.size(); i++)
+ delete myModeList[i];
}
--- kdelibs/kate/part/katesyntaxdocument.h #1.26:1.27
@@ -22,5 +22,4 @@
#include <qdom.h>
-#include <qptrlist.h>
#include <qstringlist.h>
@@ -47,5 +46,5 @@ class KateSyntaxModeListItem
* List of the KateSyntaxModeListItems holding all the syntax mode list items
*/
-typedef QPtrList<KateSyntaxModeListItem> KateSyntaxModeList;
+typedef QValueList<KateSyntaxModeListItem*> KateSyntaxModeList;
/**
@@ -90,5 +89,5 @@ class KateSyntaxDocument : public QDomDo
* @return mode list
*/
- KateSyntaxModeList modeList() { return myModeList; }
+ const KateSyntaxModeList &modeList() { return myModeList; }
/**
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic