[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kate/part
From:       Laurent Montel <montell () club-internet ! fr>
Date:       2002-12-12 16:06:40
[Download RAW message or body]

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"<<endl;
 
-  if (ctx0=0) ContextNameList->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;
+
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic