summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHonglei Zhang <honglei.zhang@nokia.com>2011-08-24 11:13:35 (GMT)
committerHonglei Zhang <honglei.zhang@nokia.com>2011-08-24 11:13:35 (GMT)
commit49dd6e2978759a3fc46016d82a46d8ee8b609221 (patch)
tree7a760744b6d6c62822ccb1710f2c862607b1ba13 /src
parenta28832bb61e7e60ac0fb856daf27b78ff1728520 (diff)
parente8b49d0e33ea6c8a2814fcad70015dbcc28e9a5d (diff)
downloadQt-49dd6e2978759a3fc46016d82a46d8ee8b609221.zip
Qt-49dd6e2978759a3fc46016d82a46d8ee8b609221.tar.gz
Qt-49dd6e2978759a3fc46016d82a46d8ee8b609221.tar.bz2
Merge branch 'xmlExtRefBuffer'
Diffstat (limited to 'src')
-rw-r--r--src/xml/sax/qxml.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xml/sax/qxml.cpp b/src/xml/sax/qxml.cpp
index 2f5384b..0c7f2ab 100644
--- a/src/xml/sax/qxml.cpp
+++ b/src/xml/sax/qxml.cpp
@@ -7748,7 +7748,13 @@ bool QXmlSimpleReaderPrivate::processReference()
return false;
}
if (ret) {
- QString xmlRefString = ret->data();
+ QString xmlRefString;
+ QString buffer = ret->data();
+ while (buffer.length()>0){
+ xmlRefString += buffer;
+ ret->fetchData();
+ buffer = ret->data();
+ }
delete ret;
if (!stripTextDecl(xmlRefString)) {
reportParseError(QLatin1String(XMLERR_ERRORINTEXTDECL));