From 4533cc994484a2308297e64e99af005fb4dca065 Mon Sep 17 00:00:00 2001 From: Jerome Pasion Date: Wed, 2 Oct 2013 16:51:05 +0200 Subject: Doc: Adding mark-up to boolean default values. Default values should have mark-up to denote that they are code. This commit changes: -"property is true" to "property is \c true". -"Returns true" to "Returns \c true". -"property is false" to "property is \c false". -"returns true" to "returns \c true". -"returns false" to "returns \c false". src/3rdparty and non-documentation instances were ignored. Task-number: QTBUG-33360 Change-Id: Ie87eaa57af947caa1230602b61c5c46292a4cf4e Reviewed-by: Oswald Buddenhagen Reviewed-by: Jerome Pasion --- src/xml/sax/qxml.cpp | 94 ++++++++++++++++++++++++++-------------------------- 1 file changed, 47 insertions(+), 47 deletions(-) (limited to 'src/xml/sax') diff --git a/src/xml/sax/qxml.cpp b/src/xml/sax/qxml.cpp index 0e20041a62..45c0f3e17b 100644 --- a/src/xml/sax/qxml.cpp +++ b/src/xml/sax/qxml.cpp @@ -180,7 +180,7 @@ static const signed char charLookupTable[256]={ /* This function strips the TextDecl [77] ("") from the string \a str. The stripped version is stored in \a str. If this function finds an - invalid TextDecl, it returns false, otherwise true. + invalid TextDecl, it returns \c false, otherwise true. This function is used for external entities since those can include an TextDecl that must be stripped before inserting the entity. @@ -1734,7 +1734,7 @@ QString QXmlInputSource::fromRawData(const QByteArray &data, bool beginning) to setDocumentLocator(), and before any other functions in this class or in the QXmlDTDHandler class are called. - If this function returns false the reader stops parsing and + If this function returns \c false the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message. @@ -1749,7 +1749,7 @@ QString QXmlInputSource::fromRawData(const QByteArray &data, bool beginning) is called after the reader has read all input or has abandoned parsing because of a fatal error. - If this function returns false the reader stops parsing and + If this function returns \c false the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message. @@ -1774,7 +1774,7 @@ QString QXmlInputSource::fromRawData(const QByteArray &data, bool beginning) The argument \a prefix is the namespace prefix being declared and the argument \a uri is the namespace URI the prefix is mapped to. - If this function returns false the reader stops parsing and + If this function returns \c false the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message. @@ -1787,7 +1787,7 @@ QString QXmlInputSource::fromRawData(const QByteArray &data, bool beginning) The reader calls this function to signal the end of a prefix mapping for the prefix \a prefix. - If this function returns false the reader stops parsing and + If this function returns \c false the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message. @@ -1819,7 +1819,7 @@ QString QXmlInputSource::fromRawData(const QByteArray &data, bool beginning) the attributes attached to the element. If there are no attributes, \a atts is an empty attributes object. - If this function returns false the reader stops parsing and + If this function returns \c false the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message. @@ -1833,7 +1833,7 @@ QString QXmlInputSource::fromRawData(const QByteArray &data, bool beginning) tag with the qualified name \a qName, the local name \a localName and the namespace URI \a namespaceURI. - If this function returns false the reader stops parsing and + If this function returns \c false the reader stops parsing and reports an error. The reader uses the function errorString() to get the error message. @@ -1857,7 +1857,7 @@ QString QXmlInputSource::fromRawData(const QByteArray &data, bool beginning) one chunk; e.g. a reader might want to report "a\