diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-06-06 07:52:12 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-06-06 07:52:12 +0000 |
commit | 5c3263289b3e10c49badd416e12075af0f2f294e (patch) | |
tree | 9d0b1f3bb167f794ec18466f94f7e8ce6b1d02fa /src/xmlstringreader.cpp | |
parent | 579a58106e541ef4a005eceaf4577048c69fa539 (diff) | |
download | libbu++-5c3263289b3e10c49badd416e12075af0f2f294e.tar.gz libbu++-5c3263289b3e10c49badd416e12075af0f2f294e.tar.bz2 libbu++-5c3263289b3e10c49badd416e12075af0f2f294e.tar.xz libbu++-5c3263289b3e10c49badd416e12075af0f2f294e.zip |
Added comment handling to the XML system. It just discards them completely, but
later it will retain them so that even after modifying the nodes the comments
could be kept in place so they aren't destroyed if something changes.
Also added necesarry functions to the XmlDocument that lets the tests run again
and fixes some issues with multiple ownernership when transfering the contents
to a new document.
Diffstat (limited to 'src/xmlstringreader.cpp')
-rw-r--r-- | src/xmlstringreader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xmlstringreader.cpp b/src/xmlstringreader.cpp index 82caacd..211df78 100644 --- a/src/xmlstringreader.cpp +++ b/src/xmlstringreader.cpp | |||
@@ -29,10 +29,10 @@ char XmlStringReader::getChar( int nAdd ) | |||
29 | } | 29 | } |
30 | } | 30 | } |
31 | 31 | ||
32 | void XmlStringReader::usedChar() | 32 | void XmlStringReader::usedChar( int nAmnt ) |
33 | { | 33 | { |
34 | if( nLength >= nIndex+1 ) | 34 | if( nLength >= nIndex+nAmnt ) |
35 | { | 35 | { |
36 | nIndex++; | 36 | nIndex += nAmnt; |
37 | } | 37 | } |
38 | } | 38 | } |