lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [5411] Prefer <X/> to <X></X> for empty elements


From: Greg Chicares
Subject: [lmi-commits] [5411] Prefer <X/> to <X></X> for empty elements
Date: Tue, 28 Feb 2012 11:13:38 +0000

Revision: 5411
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5411
Author:   chicares
Date:     2012-02-28 11:13:38 +0000 (Tue, 28 Feb 2012)
Log Message:
-----------
Prefer <X/> to <X></X> for empty elements

Modified Paths:
--------------
    lmi/trunk/ChangeLog
    lmi/trunk/xmlwrapp-0.6.0.md5sums

Added Paths:
-----------
    lmi/trunk/xmlwrapp-0.6.0.patch

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2012-02-28 10:51:15 UTC (rev 5410)
+++ lmi/trunk/ChangeLog 2012-02-28 11:13:38 UTC (rev 5411)
@@ -29752,3 +29752,10 @@
   install_wx.make
 Make generated script executable.
 
+20120228T1113Z <address@hidden> [573]
+
+  xmlwrapp-0.6.0.md5sums
+  xmlwrapp-0.6.0.patch [new file]
+Prefer <X/> to <X></X> for empty elements. See:
+  http://lists.nongnu.org/archive/html/lmi/2012-02/msg00013.html
+

Modified: lmi/trunk/xmlwrapp-0.6.0.md5sums
===================================================================
--- lmi/trunk/xmlwrapp-0.6.0.md5sums    2012-02-28 10:51:15 UTC (rev 5410)
+++ lmi/trunk/xmlwrapp-0.6.0.md5sums    2012-02-28 11:13:38 UTC (rev 5411)
@@ -18,7 +18,7 @@
 11c9c65c6cef31a817025466d77081dd *src/libxml/dtd_impl.h
 426d8e51666685d69f2ea6750f615ad3 *src/libxml/event_parser.cxx
 ecb3350fac8e600f2197d38a60324e6c *src/libxml/init.cxx
-de391fcf51fd4fb792f4c42edca7360d *src/libxml/node.cxx
+78eed3d30ccd32613a501f8f8873361d *src/libxml/node.cxx
 2b3eb874f694c33bee016970f1c00565 *src/libxml/node_iterator.cxx
 c5d1a7e13771e5c11e379813fa977b7b *src/libxml/node_iterator.h
 fde6f21507051ad6ba778fc16dd60401 *src/libxml/node_manip.cxx

Added: lmi/trunk/xmlwrapp-0.6.0.patch
===================================================================
--- lmi/trunk/xmlwrapp-0.6.0.patch                              (rev 0)
+++ lmi/trunk/xmlwrapp-0.6.0.patch      2012-02-28 11:13:38 UTC (rev 5411)
@@ -0,0 +1,23 @@
+diff --recursive '--unified=3' original/xmlwrapp-0.6.0/src/libxml/node.cxx 
modified/xmlwrapp-0.6.0/src/libxml/node.cxx
+--- original/xmlwrapp-0.6.0/src/libxml/node.cxx        2009-02-21 
16:19:55.000000000 +0000
++++ modified/xmlwrapp-0.6.0/src/libxml/node.cxx        2012-02-23 
07:26:40.000000000 +0000
+@@ -243,12 +243,14 @@
+     pimpl_->xmlnode_ = xmlNewNode(0, reinterpret_cast<const xmlChar*>(name));
+     if (!pimpl_->xmlnode_) throw std::bad_alloc();
+ 
+-    xmlNodePtr content_node = xmlNewText(reinterpret_cast<const 
xmlChar*>(content));
+-    if (!content_node) throw std::bad_alloc();
++    if (0 != std::strlen(content)) {
++        xmlNodePtr content_node = xmlNewText(reinterpret_cast<const 
xmlChar*>(content));
++        if (!content_node) throw std::bad_alloc();
+ 
+-    if (!xmlAddChild(pimpl_->xmlnode_, content_node)) {
+-      xmlFreeNode(content_node);
+-      throw std::bad_alloc();
++        if (!xmlAddChild(pimpl_->xmlnode_, content_node)) {
++        xmlFreeNode(content_node);
++        throw std::bad_alloc();
++        }
+     }
+ 
+     ap.release();


Property changes on: lmi/trunk/xmlwrapp-0.6.0.patch
___________________________________________________________________
Added: svn:keywords
   + Id




reply via email to

[Prev in Thread] Current Thread [Next in Thread]