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
+3 -2
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;
+3 -3
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();
+1 -1
View File
@@ -58,7 +58,7 @@ private:
class NvHTTP class NvHTTP
{ {
public: public:
NvHTTP(QString address); explicit NvHTTP(QString address);
static static
int int
+1 -1
View File
@@ -19,7 +19,7 @@ public:
ALREADY_IN_PROGRESS ALREADY_IN_PROGRESS
}; };
NvPairingManager(QString address); explicit NvPairingManager(QString address);
~NvPairingManager(); ~NvPairingManager();