Removed QXmlStreamReader::readElementText overload
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>
Thu, 12 Apr 2012 20:21:56 +0000 (22:21 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sat, 14 Apr 2012 01:53:46 +0000 (03:53 +0200)
The version without argument was kept for binary compatibility when
the configurable ReadElementTextBehaviour was introduced. It is now
dropped in favour of using a default argument value.

Change-Id: Ic08c41d5a5aad9f22df7fc37a2d53ffbc6df1fe9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/xml/qxmlstream.cpp
src/corelib/xml/qxmlstream.h

index 6222a76..df2c2f9 100644 (file)
@@ -2092,7 +2092,7 @@ void QXmlStreamReader::addExtraNamespaceDeclarations(const QXmlStreamNamespaceDe
   The \a behaviour defines what happens in case anything else is
   read before reaching EndElement. The function can include the text from
   child elements (useful for example for HTML), ignore child elements, or
-  raise an UnexpectedElementError and return what was read so far.
+  raise an UnexpectedElementError and return what was read so far (default).
 
   \since 4.6
  */
@@ -2133,16 +2133,6 @@ QString QXmlStreamReader::readElementText(ReadElementTextBehaviour behaviour)
     return QString();
 }
 
-/*!
-  \overload readElementText()
-
-  Calling this function is equivalent to calling readElementText(ErrorOnUnexpectedElement).
- */
-QString QXmlStreamReader::readElementText()
-{
-    return readElementText(ErrorOnUnexpectedElement);
-}
-
 /*!  Raises a custom error with an optional error \a message.
 
   \sa error(), errorString()
index 90382c7..ae6dd23 100644 (file)
@@ -301,8 +301,7 @@ public:
         IncludeChildElements,
         SkipChildElements
     };
-    QString readElementText(ReadElementTextBehaviour behaviour);
-    QString readElementText();
+    QString readElementText(ReadElementTextBehaviour behaviour = ErrorOnUnexpectedElement);
 
     QStringRef name() const;
     QStringRef namespaceUri() const;