From kde-commits Thu Dec 12 16:06:40 2002 From: Laurent Montel Date: Thu, 12 Dec 2002 16:06:40 +0000 To: kde-commits Subject: kdelibs/kate/part X-MARC-Message: https://marc.info/?l=kde-commits&m=103970930304252 CVS commit by mlaurent: - if (ctx0=0) ContextNameList->clear(); + if (ctx0 == 0) + ContextNameList->clear(); cullmann or jowenn could you look at it please. M +27 -22 katehighlight.cpp 1.79 --- kdelibs/kate/part/katehighlight.cpp #1.78:1.79 @@ -843,4 +844,5 @@ Highlight::Highlight(const syntaxModeLis Highlight::~Highlight() { + contextList.setAutoDelete( true ); } @@ -1665,5 +1667,6 @@ void Highlight::createContextNameList(Q kdDebug(13010)<<"creatingContextNameList:BEGIN"<clear(); + if (ctx0 == 0) + ContextNameList->clear(); HlManager::self()->syntax->setIdentifier(buildIdentifier); @@ -1973,5 +1976,7 @@ HlManager::HlManager() : QObject(0) HlManager::~HlManager() { - if(syntax) delete syntax; + if(syntax) + delete syntax; + }