Minor class improvements

This commit is contained in:
Cameron Gutman 2018-06-27 19:55:44 -07:00
parent 36c8b6ce53
commit 135568b5ee
4 changed files with 8 additions and 7 deletions

View File

@ -146,8 +146,9 @@ bool NvComputer::update(NvComputer& that)
return changed; return changed;
} }
ComputerManager::ComputerManager() ComputerManager::ComputerManager(QObject *parent)
: m_Polling(false) : QObject(parent),
m_Polling(false)
{ {
QSettings settings; QSettings settings;

View File

@ -8,9 +8,9 @@
class NvComputer class NvComputer
{ {
public: public:
NvComputer(QString address, QString serverInfo); explicit NvComputer(QString address, QString serverInfo);
NvComputer(QSettings& settings); explicit NvComputer(QSettings& settings);
bool bool
update(NvComputer& that); update(NvComputer& that);
@ -214,7 +214,7 @@ class ComputerManager : public QObject
Q_OBJECT Q_OBJECT
public: public:
ComputerManager(); explicit ComputerManager(QObject *parent = nullptr);
void startPolling(); void startPolling();

View File

@ -58,7 +58,7 @@ private:
class NvHTTP class NvHTTP
{ {
public: public:
NvHTTP(QString address); explicit NvHTTP(QString address);
static static
int int

View File

@ -19,7 +19,7 @@ public:
ALREADY_IN_PROGRESS ALREADY_IN_PROGRESS
}; };
NvPairingManager(QString address); explicit NvPairingManager(QString address);
~NvPairingManager(); ~NvPairingManager();