Changeset 846 for trunk/src/corelib/xml
- Timestamp:
- May 5, 2011, 5:36:53 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
. (modified) (1 prop)
-
src/corelib/xml/make-parser.sh (modified) (1 diff)
-
src/corelib/xml/qxmlstream.cpp (modified) (6 diffs)
-
src/corelib/xml/qxmlstream.g (modified) (1 diff)
-
src/corelib/xml/qxmlstream.h (modified) (1 diff)
-
src/corelib/xml/qxmlstream_p.h (modified) (1 diff)
-
src/corelib/xml/qxmlutils.cpp (modified) (1 diff)
-
src/corelib/xml/qxmlutils_p.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/corelib/xml/make-parser.sh
r651 r846 2 2 ############################################################################# 3 3 ## 4 ## Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).4 ## Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 5 5 ## All rights reserved. 6 6 ## Contact: Nokia Corporation ([email protected]) -
trunk/src/corelib/xml/qxmlstream.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 561 561 from a QByteArray, or by waiting for more data to arrive if the 562 562 XML is being read from a QIODevice. Either way, atEnd() will 563 return false once more adata is available.563 return false once more data is available. 564 564 565 565 \sa hasError(), error(), device(), QIODevice::atEnd() … … 1524 1524 } 1525 1525 1526 decoder->toUnicode(&readBuffer, rawReadBuffer. data(), nbytesread);1526 decoder->toUnicode(&readBuffer, rawReadBuffer.ata(), nbytesread); 1527 1527 1528 1528 if(lockEncoding && decoder->hasFailure()) { … … 3004 3004 #ifndef QT_NO_TEXTCODEC 3005 3005 codec = QTextCodec::codecForMib(106); // utf8 3006 encoder = codec->makeEncoder(); 3007 encoder->state.flags |= QTextCodec::IgnoreHeader; // no byte order mark for utf8 3006 encoder = codec->makeEncoder(QTextCodec::IgnoreHeader); // no byte order mark for utf8 3008 3007 #endif 3009 3008 inStartElement = inEmptyElement = false; … … 3279 3278 d->codec = codec; 3280 3279 delete d->encoder; 3281 d->encoder = codec->makeEncoder(); 3282 if (codec->mibEnum() == 106) 3283 d->encoder->state.flags |= QTextCodec::IgnoreHeader; // no byte order mark for utf8 3280 d->encoder = codec->makeEncoder(QTextCodec::IgnoreHeader); // no byte order mark for utf8 3284 3281 } 3285 3282 } … … 3720 3717 Q_D(QXmlStreamWriter); 3721 3718 Q_ASSERT(!data.contains(QLatin1String("?>"))); 3722 d->finishStartElement(); 3719 if (!d->finishStartElement(false) && d->autoFormatting) 3720 d->indent(d->tagStack.size()); 3723 3721 d->write("<?"); 3724 3722 d->write(target); -
trunk/src/corelib/xml/qxmlstream.g
r769 r846 1 1 ---------------------------------------------------------------------------- 2 2 -- 3 -- Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 -- Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 -- All rights reserved. 5 5 -- Contact: Nokia Corporation ([email protected]) -
trunk/src/corelib/xml/qxmlstream.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) -
trunk/src/corelib/xml/qxmlstream_p.h
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) -
trunk/src/corelib/xml/qxmlutils.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) -
trunk/src/corelib/xml/qxmlutils_p.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected])
Note:
See TracChangeset
for help on using the changeset viewer.
