Ticket #12996: v2-0006-Fix-unused-parameter-warning-in-UPNP-serializers.patch

File v2-0006-Fix-unused-parameter-warning-in-UPNP-serializers.patch, 5.0 KB (added by David Hampton <mythtv@…>, 3 years ago)

UPNP serializer patches for intentionally unused variables.

  • mythtv/libs/libmythupnp/serializers/jsonSerializer.cpp

    Fix unused parameter warning in UPNP serializers.
    
    It appears intentional that these variables aren't used.
    ---
     mythtv/libs/libmythupnp/serializers/jsonSerializer.cpp     | 12 ++++++------
     mythtv/libs/libmythupnp/serializers/xmlSerializer.cpp      |  4 ++--
     mythtv/libs/libmythupnp/serializers/xmlplistSerializer.cpp | 10 +++++-----
     3 files changed, 13 insertions(+), 13 deletions(-)
    
    diff --git a/mythtv/libs/libmythupnp/serializers/jsonSerializer.cpp b/mythtv/libs/libmythupnp/serializers/jsonSerializer.cpp
    index bcd4b55..e76b46d 100644
    a b  
    2020//
    2121//////////////////////////////////////////////////////////////////////////////
    2222
    23 JSONSerializer::JSONSerializer( QIODevice *pDevice, const QString &sRequestName )
     23JSONSerializer::JSONSerializer( QIODevice *pDevice, const QString &/*sRequestName*/ )
    2424               : m_Stream( pDevice ), m_bCommaNeeded( false )
    2525{
    2626}
    QString JSONSerializer::GetContentType() 
    4747//
    4848//////////////////////////////////////////////////////////////////////////////
    4949
    50 void JSONSerializer::BeginSerialize( QString &sName )
     50void JSONSerializer::BeginSerialize( QString &/*sName*/ )
    5151{
    5252    m_bCommaNeeded = false;
    5353
    void JSONSerializer::EndSerialize() 
    7272//
    7373//////////////////////////////////////////////////////////////////////////////
    7474
    75 void JSONSerializer::BeginObject( const QString &sName, const QObject  *pObject )
     75void JSONSerializer::BeginObject( const QString &sName, const QObject  */*pObject*/ )
    7676{
    7777    m_bCommaNeeded = false;
    7878   
    void JSONSerializer::BeginObject( const QString &sName, const QObject *pObject 
    8383//
    8484//////////////////////////////////////////////////////////////////////////////
    8585
    86 void JSONSerializer::EndObject  ( const QString &sName, const QObject  *pObject )
     86void JSONSerializer::EndObject  ( const QString &/*sName*/, const QObject  */*pObject*/ )
    8787{
    8888    m_bCommaNeeded = false;
    8989   
    void JSONSerializer::EndObject ( const QString &sName, const QObject *pObject 
    9696
    9797void JSONSerializer::AddProperty( const QString       &sName,
    9898                                  const QVariant      &vValue,
    99                                   const QMetaObject   *pMetaParent,
    100                                   const QMetaProperty *pMetaProp )
     99                                  const QMetaObject   */*pMetaParent*/,
     100                                  const QMetaProperty */*pMetaProp*/ )
    101101{
    102102    if (m_bCommaNeeded)
    103103        m_Stream << ", ";
  • mythtv/libs/libmythupnp/serializers/xmlSerializer.cpp

    diff --git a/mythtv/libs/libmythupnp/serializers/xmlSerializer.cpp b/mythtv/libs/libmythupnp/serializers/xmlSerializer.cpp
    index 41ad4fd..e6a446d 100644
    a b QString XmlSerializer::GetContentType() 
    5959//
    6060//////////////////////////////////////////////////////////////////////////////
    6161
    62 void XmlSerializer::BeginSerialize( QString &sName )
     62void XmlSerializer::BeginSerialize( QString &/*sName*/ )
    6363{
    6464    m_pXmlWriter->writeStartDocument( "1.0" );
    6565//    m_pXmlWriter->writeStartElement( m_sRequestName + "Response" );
    void XmlSerializer::BeginObject( const QString &sName, const QObject *pObject ) 
    107107//
    108108//////////////////////////////////////////////////////////////////////////////
    109109
    110 void XmlSerializer::EndObject  ( const QString &sName, const QObject  *pObject )
     110void XmlSerializer::EndObject  ( const QString &/*sName*/, const QObject  */*pObject*/ )
    111111{
    112112    m_pXmlWriter->writeEndElement();
    113113}
  • mythtv/libs/libmythupnp/serializers/xmlplistSerializer.cpp

    diff --git a/mythtv/libs/libmythupnp/serializers/xmlplistSerializer.cpp b/mythtv/libs/libmythupnp/serializers/xmlplistSerializer.cpp
    index 3758fbb..e25b31b 100644
    a b XmlPListSerializer::~XmlPListSerializer() 
    3333{
    3434}
    3535
    36 void XmlPListSerializer::BeginSerialize(QString &sName)
     36void XmlPListSerializer::BeginSerialize(QString &/*sName*/)
    3737{
    3838    m_pXmlWriter->setAutoFormatting(true);
    3939    m_pXmlWriter->setAutoFormattingIndent(4);
    void XmlPListSerializer::BeginObject(const QString &sName, 
    235235    m_pXmlWriter->writeStartElement("dict");
    236236}
    237237
    238 void XmlPListSerializer::EndObject(const QString &sName,
    239                                    const QObject *pObject)
     238void XmlPListSerializer::EndObject(const QString &/*sName*/,
     239                                   const QObject */*pObject*/)
    240240{
    241241    m_pXmlWriter->writeEndElement(); // dict
    242242}
    243243
    244244void XmlPListSerializer::AddProperty(const QString &sName,
    245245                                     const QVariant &vValue,
    246                                      const QMetaObject *pMetaParent,
    247                                      const QMetaProperty *pMetaProp)
     246                                     const QMetaObject */*pMetaParent*/,
     247                                     const QMetaProperty */*pMetaProp*/)
    248248{
    249249    RenderValue(sName, vValue);
    250250}