Skip to content

Commit

Permalink
QDom: Add & to const QString
Browse files Browse the repository at this point in the history
Change-Id: Ib761f34c891a28e1285f08787047a48de4d2d750
Reviewed-by: Allan Sandfeld Jensen <[email protected]>
Reviewed-by: Christian Ehrlicher <[email protected]>
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
albert-astals-cid-kdab committed Oct 2, 2019
1 parent 4c8814a commit b5b78f4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions src/xml/dom/qdom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4984,7 +4984,7 @@ bool QDomElement::hasAttribute(const QString& name) const
\sa setAttributeNS(), attributeNodeNS(), setAttributeNodeNS(), attribute()
*/
QString QDomElement::attributeNS(const QString nsURI, const QString& localName, const QString& defValue) const
QString QDomElement::attributeNS(const QString& nsURI, const QString& localName, const QString& defValue) const
{
if (!impl)
return defValue;
Expand All @@ -5003,29 +5003,29 @@ QString QDomElement::attributeNS(const QString nsURI, const QString& localName,
\sa attributeNS(), setAttributeNodeNS(), setAttribute()
*/
void QDomElement::setAttributeNS(const QString nsURI, const QString& qName, const QString& value)
void QDomElement::setAttributeNS(const QString& nsURI, const QString& qName, const QString& value)
{
if (!impl)
return;
IMPL->setAttributeNS(nsURI, qName, value);
}

/*!
\fn void QDomElement::setAttributeNS(const QString nsURI, const QString& qName, int value)
\fn void QDomElement::setAttributeNS(const QString& nsURI, const QString& qName, int value)
\overload
*/

/*!
\fn void QDomElement::setAttributeNS(const QString nsURI, const QString& qName, uint value)
\fn void QDomElement::setAttributeNS(const QString& nsURI, const QString& qName, uint value)
\overload
*/

/*!
\overload
*/
void QDomElement::setAttributeNS(const QString nsURI, const QString& qName, qlonglong value)
void QDomElement::setAttributeNS(const QString& nsURI, const QString& qName, qlonglong value)
{
if (!impl)
return;
Expand All @@ -5037,7 +5037,7 @@ void QDomElement::setAttributeNS(const QString nsURI, const QString& qName, qlon
/*!
\overload
*/
void QDomElement::setAttributeNS(const QString nsURI, const QString& qName, qulonglong value)
void QDomElement::setAttributeNS(const QString& nsURI, const QString& qName, qulonglong value)
{
if (!impl)
return;
Expand All @@ -5049,7 +5049,7 @@ void QDomElement::setAttributeNS(const QString nsURI, const QString& qName, qulo
/*!
\overload
*/
void QDomElement::setAttributeNS(const QString nsURI, const QString& qName, double value)
void QDomElement::setAttributeNS(const QString& nsURI, const QString& qName, double value)
{
if (!impl)
return;
Expand Down
14 changes: 7 additions & 7 deletions src/xml/dom/qdom.h
Original file line number Diff line number Diff line change
Expand Up @@ -493,15 +493,15 @@ class Q_XML_EXPORT QDomElement : public QDomNode
QDomNodeList elementsByTagName(const QString& tagname) const;
bool hasAttribute(const QString& name) const;

QString attributeNS(const QString nsURI, const QString& localName, const QString& defValue = QString()) const;
void setAttributeNS(const QString nsURI, const QString& qName, const QString& value);
inline void setAttributeNS(const QString nsURI, const QString& qName, int value)
QString attributeNS(const QString& nsURI, const QString& localName, const QString& defValue = QString()) const;
void setAttributeNS(const QString& nsURI, const QString& qName, const QString& value);
inline void setAttributeNS(const QString& nsURI, const QString& qName, int value)
{ setAttributeNS(nsURI, qName, qlonglong(value)); }
inline void setAttributeNS(const QString nsURI, const QString& qName, uint value)
inline void setAttributeNS(const QString& nsURI, const QString& qName, uint value)
{ setAttributeNS(nsURI, qName, qulonglong(value)); }
void setAttributeNS(const QString nsURI, const QString& qName, qlonglong value);
void setAttributeNS(const QString nsURI, const QString& qName, qulonglong value);
void setAttributeNS(const QString nsURI, const QString& qName, double value);
void setAttributeNS(const QString& nsURI, const QString& qName, qlonglong value);
void setAttributeNS(const QString& nsURI, const QString& qName, qulonglong value);
void setAttributeNS(const QString& nsURI, const QString& qName, double value);
void removeAttributeNS(const QString& nsURI, const QString& localName);
QDomAttr attributeNodeNS(const QString& nsURI, const QString& localName);
QDomAttr setAttributeNodeNS(const QDomAttr& newAttr);
Expand Down

0 comments on commit b5b78f4

Please sign in to comment.