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

List:       kde-commits
Subject:    kdewebdev/quanta/utility
From:       Andras Mantia <amantia () kde ! org>
Date:       2005-04-02 16:41:24
Message-ID: 20050402164124.067FF633 () office ! kde ! org
[Download RAW message or body]

CVS commit by amantia: 

Use Q_ASSERT (and make it compile).

CCMAIL:moura@kdewebdev.org


  M +12 -12    tagaction.cpp   1.126


--- kdewebdev/quanta/utility/tagaction.cpp  #1.125:1.126
@@ -152,5 +152,5 @@ bool TagAction::slotActionActivated(KAct
         {
             current_node = kafkaCommon::getNodeFromLocation(selection.cursorNode());
-            assert(current_node);
+            Q_ASSERT(current_node);
             current_offset = selection.cursorOffset();
             
@@ -160,5 +160,5 @@ bool TagAction::slotActionActivated(KAct
             QTag* tag_description = \
QuantaCommon::tagFromDTD(KafkaDocument::ref()->getCurrentDoc()->defaultDTD(), \
XMLTagName());  QString scope = tag_description->scope();
-//             assert(!scope.isNull());
+//             Q_ASSERT(!scope.isNull());
             if(scope.isNull())
                 scope = "word"; // FIXME temporary
@@ -183,5 +183,5 @@ bool TagAction::slotActionActivated(KAct
             }
         }        
-        assert(start_node && end_node);
+        Q_ASSERT(start_node && end_node);
         
 /*        kdDebug(23100) << "start node string: " << start_node->tag->tagStr() << \
endl;     @@ -984,9 +984,9 @@ void TagAction::applyTagInSelection(Node
     Document* w = view->document();
         
-    assert(view->hadLastFocus() == QuantaView::VPLFocus);
-    assert(toggable());
+    Q_ASSERT(view->hadLastFocus() == QuantaView::VPLFocus);
+    Q_ASSERT(toggable());
         
     QString tag_name = XMLTagName();
-    assert(kafkaCommon::isInsideTag(start_node, end_node, tag_name) == -1);
+    Q_ASSERT(kafkaCommon::isInsideTag(start_node, end_node, tag_name) == -1);
     
     QString open_tag = openXMLTagString();
@@ -1075,5 +1075,5 @@ void TagAction::applyTagInMixedSelection
                                          NodeSelection& selection, NodeModifsSet* \
modifs) const  {
-    assert(start_node != end_node);
+    Q_ASSERT(start_node != end_node);
 
     QString const tag_name = XMLTagName();
@@ -1081,5 +1081,5 @@ void TagAction::applyTagInMixedSelection
     // FIXME o pai pode ser do endNode. nao sei se esta merda eh precisa
 /*    Node* tag_parent = kafkaCommon::hasParent(start_node, tag_name);
-    assert(tag_parent);*/
+    Q_ASSERT(tag_parent);*/
     
     QuantaView *view = ViewManager::ref()->activeView();    
@@ -1103,5 +1103,5 @@ void TagAction::applyTagInMixedSelection
                                              selection, false, modifs);
 
-    assert(start_node != end_node);
+    Q_ASSERT(start_node != end_node);
     
 //     kafkaCommon::coutTree(baseNode, 3);
@@ -1115,5 +1115,5 @@ void TagAction::applyTagInMixedSelection
             new_node->tag->name);
     
-    assert(new_node->tag->type == Tag::XmlTag);
+    Q_ASSERT(new_node->tag->type == Tag::XmlTag);
 
     Node* commonParentStartChild = \
kafkaCommon::getNodeFromLocation(commonParentStartChildLocation, commonParent); @@ \
-1143,5 +1143,5 @@ void TagAction::applyTagInMixedSelection  cursor_offset = \
selection.cursorOffset();  
-    assert(new_node->getClosingNode());
+    Q_ASSERT(new_node->getClosingNode());
 
     // FIXME remove possible equal tags inside the main surrounding tag    
@@ -1182,5 +1182,5 @@ void TagAction::deapplyTagInSelection(No
     
     Node* tag_parent = kafkaCommon::hasParent(start_node, end_node, tag_name);
-    assert(tag_parent);
+    Q_ASSERT(tag_parent);
     
     Node* common_parent_start_child = kafkaCommon::getCommonParentChild(start_node, \
tag_parent);


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

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