Ticket #8572: mythtv-compile_fixes_for_qt_4_7.patch

File mythtv-compile_fixes_for_qt_4_7.patch, 3.3 KB (added by sphery, 14 years ago)
  • libs/libmythupnp/eventing.h

    ---
     libs/libmyth/audiooutputbase.cpp  |    2 	1 +	1 -	0 !
     libs/libmyth/mythdeque.h          |    2 	1 +	1 -	0 !
     libs/libmythtv/recordingprofile.h |    2 	1 +	1 -	0 !
     libs/libmythtv/tv_rec.h           |    2 	1 +	1 -	0 !
     libs/libmythupnp/eventing.h       |    4 	2 +	2 -	0 !
     5 files changed, 6 insertions(+), 6 deletions(-)
    
    old new  
    233233        {
    234234            SVMap::iterator it = m_map.find(sName);
    235235            if (it == m_map.end())
    236                 return T(0);
     236                return T();
    237237
    238238            StateVariable< T > *pVariable =
    239239                dynamic_cast< StateVariable< T > *>( *it );
     
    241241            if (pVariable != NULL)
    242242                return pVariable->GetValue();
    243243
    244             return T(0);
     244            return T();
    245245        }
    246246
    247247        uint BuildNotifyBody(QTextStream &ts, TaskTime ttLastNotified) const;
  • libs/libmyth/audiooutputbase.cpp

    old new  
    7575    source_bytes_per_frame(0),
    7676    needs_upmix(false),         needs_downmix(false),
    7777    surround_mode(QUALITY_LOW), old_stretchfactor(1.0f),
    78     volume(80),                 volumeControl(NULL),
     78    volume(80),                 volumeControl(QString()),
    7979
    8080    processing(false),
    8181
  • libs/libmyth/mythdeque.h

    old new  
    1919    T dequeue()
    2020    {
    2121        if (deque<T>::empty())
    22             return (T)(0);
     22            return T();
    2323        T item = deque<T>::front();
    2424        deque<T>::pop_front();
    2525        return item;
  • libs/libmythtv/recordingprofile.h

    old new  
    8484
    8585  public:
    8686    // initializers
    87     RecordingProfile(QString profName = NULL);
     87    RecordingProfile(QString profName = QString());
    8888    virtual void loadByID(int id);
    8989    virtual bool loadByType(const QString &name, const QString &cardtype);
    9090    virtual bool loadByGroup(const QString &name, const QString &group);
  • libs/libmythtv/tv_rec.h

    old new  
    9393class TuningRequest
    9494{
    9595  public:
    96     TuningRequest(uint f) :
     96    TuningRequest(uint f = 0) :
    9797        flags(f), program(NULL), channel(QString::null),
    9898        input(QString::null), majorChan(0), minorChan(0), progNum(-1) {;}
    9999    TuningRequest(uint f, RecordingInfo *p) :