Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Provide GetNodeValue(.. const char*) implementation.

When GetNodeValue is called with a C string as the default value,
the value is promoted to an int not a QString() leading to
unintended results.
  • Loading branch information...
commit 8a4adc5b70816a0c278af0ca1a7c776786d99b03 1 parent d1960cc
@daniel-kristjansson daniel-kristjansson authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 mythtv/libs/libmythupnp/soapclient.h
6 mythtv/libs/libmythupnp/soapclient.h
@@ -47,6 +47,12 @@ class UPNP_PUBLIC SOAPClient
QString GetNodeValue(const QDomNode &node,
const QString &sName,
const QString &sDefault) const;
+ QString GetNodeValue(const QDomNode &node,
+ const QString &sName,
+ const char *sDefault) const
+ {
+ return GetNodeValue(node, sName, QString(sDefault));
+ }
QDomNode FindNode(const QString &sName,
const QDomNode &baseNode) const;

0 comments on commit 8a4adc5

Please sign in to comment.
Something went wrong with that request. Please try again.