diff --git a/editor/base/SplitElementTxn.cpp b/editor/base/SplitElementTxn.cpp index 1d5b9c83e0a8..5bc467f3549b 100644 --- a/editor/base/SplitElementTxn.cpp +++ b/editor/base/SplitElementTxn.cpp @@ -74,10 +74,8 @@ NS_IMETHODIMP SplitElementTxn::Do(void) result = nsEditor::SplitNodeImpl(mExistingRightNode, mOffset, mNewLeftNode, mParent); if (NS_SUCCEEDED(result) && mNewLeftNode) { -#ifdef DEBUG_akkana // Insert formatting whitespace for the new node: mEditor->InsertFormattingForNode(mExistingRightNode); -#endif nsCOMPtrselection; mEditor->GetSelection(getter_AddRefs(selection)); diff --git a/editor/base/nsEditor.cpp b/editor/base/nsEditor.cpp index fa940c305b37..0049002f48c3 100644 --- a/editor/base/nsEditor.cpp +++ b/editor/base/nsEditor.cpp @@ -922,13 +922,13 @@ nsEditor::InsertFormattingForNode(nsIDOMNode* aNode) PRInt32 offset = GetIndexOf(parent, aNode); #ifdef DEBUG_akkana - DumpContentTree(); + //DumpContentTree(); nsString namestr; aNode->GetNodeName(namestr); char* nodename = namestr.ToNewCString(); printf("Inserting formatting for node <%s> at offset %d\n", nodename, offset); - delete[] nodename; + nsCRT::free(nodename); #endif /* DEBUG_akkana */ // diff --git a/editor/libeditor/base/SplitElementTxn.cpp b/editor/libeditor/base/SplitElementTxn.cpp index 1d5b9c83e0a8..5bc467f3549b 100644 --- a/editor/libeditor/base/SplitElementTxn.cpp +++ b/editor/libeditor/base/SplitElementTxn.cpp @@ -74,10 +74,8 @@ NS_IMETHODIMP SplitElementTxn::Do(void) result = nsEditor::SplitNodeImpl(mExistingRightNode, mOffset, mNewLeftNode, mParent); if (NS_SUCCEEDED(result) && mNewLeftNode) { -#ifdef DEBUG_akkana // Insert formatting whitespace for the new node: mEditor->InsertFormattingForNode(mExistingRightNode); -#endif nsCOMPtrselection; mEditor->GetSelection(getter_AddRefs(selection)); diff --git a/editor/libeditor/base/nsEditor.cpp b/editor/libeditor/base/nsEditor.cpp index fa940c305b37..0049002f48c3 100644 --- a/editor/libeditor/base/nsEditor.cpp +++ b/editor/libeditor/base/nsEditor.cpp @@ -922,13 +922,13 @@ nsEditor::InsertFormattingForNode(nsIDOMNode* aNode) PRInt32 offset = GetIndexOf(parent, aNode); #ifdef DEBUG_akkana - DumpContentTree(); + //DumpContentTree(); nsString namestr; aNode->GetNodeName(namestr); char* nodename = namestr.ToNewCString(); printf("Inserting formatting for node <%s> at offset %d\n", nodename, offset); - delete[] nodename; + nsCRT::free(nodename); #endif /* DEBUG_akkana */ //