Ticket #5774: libs_libmythdb-krazy2-explicit-ctor.patch

File libs_libmythdb-krazy2-explicit-ctor.patch, 882 bytes (added by Erik Hovland <erik@…>, 11 years ago)

Adds explicit keyword to Credentials ctor

  • mythtv/libs/libmythdb/httpcomms.h

    Use explicit to make sure we don't get implicit ctors we don't want.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     mythtv/libs/libmythdb/httpcomms.h |    5 ++++-
     1 files changed, 4 insertions(+), 1 deletions(-)
    
    diff --git a/mythtv/libs/libmythdb/httpcomms.h b/mythtv/libs/libmythdb/httpcomms.h
    index d78f8c6..bd11090 100644
    a b class MPUBLIC HttpComms : public QObject 
    3838    class Credentials
    3939    {
    4040        public:
    41             Credentials( const QString& _user="", const QString& _pass="") { user = _user; pass = _pass; }
     41            explicit Credentials( const QString& _user="",
     42                                  const QString& _pass="")
     43                { user = _user; pass = _pass; }
     44
    4245            QString user;
    4346            QString pass;
    4447    };