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

List:       kde-commits
Subject:    kdenonbeta/kdom
From:       Rob Buis <rwlbuis () xs4all ! nl>
Date:       2004-12-17 13:14:01
Message-ID: 20041217131401.71ACA1BBF7 () office ! kde ! org
[Download RAW message or body]

CVS commit by buis: 

Fixing a problem with SplitNamespace.


  M +4 -7      Helper.cc   1.32
  M +0 -1      impl/DocumentImpl.cc   1.56


--- kdenonbeta/kdom/Helper.cc  #1.31:1.32
@@ -50,13 +50,10 @@ void Helper::SplitNamespace(DOMString &p
         int i = qualifiedName.find(':');
         if(i == -1)
-        {
-                prefix = QString::null;
-                name = qualifiedName;
-        }
+                name = qualifiedName.implementation()->copy();
         else
         {
-                prefix = qualifiedName;
-                name = prefix.split(i);
-                name.remove(0);
+                prefix = qualifiedName.implementation()->copy();
+                name = prefix.split(i + 1);
+                prefix.implementation()->truncate(i);
         }
 }

--- kdenonbeta/kdom/impl/DocumentImpl.cc  #1.55:1.56
@@ -214,5 +214,4 @@ AttrImpl *DocumentImpl::createAttribute(
 AttrImpl *DocumentImpl::createAttributeNS(const DOMString &namespaceURI, const \
DOMString &qualifiedName, bool addTextChild)  {
-        kdDebug() << "createAttrNS : " << qualifiedName << " : " << namespaceURI << \
endl;  int dummy;
         Helper::CheckQualifiedName(qualifiedName, namespaceURI, dummy, false, \
false);


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

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