Commit a4266d0a authored by Pekka Vuorela's avatar Pekka Vuorela

Remove unnecessary characters and use qt copy constructor hiding

parent 52ee9e22
......@@ -20,7 +20,7 @@ SsuCoreConfig *SsuCoreConfig::ssuCoreConfig = 0;
SsuCoreConfig *SsuCoreConfig::instance()
{
if (!ssuCoreConfig)
ssuCoreConfig = new SsuCoreConfig();
ssuCoreConfig = new SsuCoreConfig;
return ssuCoreConfig;
}
......
......@@ -109,8 +109,8 @@ public:
private:
SsuCoreConfig(): SsuSettings(SSU_CONFIGURATION, QSettings::IniFormat, SSU_DEFAULT_CONFIGURATION) {};
SsuCoreConfig(const SsuCoreConfig &); // hide copy constructor
SsuCoreConfig(): SsuSettings(SSU_CONFIGURATION, QSettings::IniFormat, SSU_DEFAULT_CONFIGURATION) {}
Q_DISABLE_COPY(SsuCoreConfig)
static SsuCoreConfig *ssuCoreConfig;
};
......
......@@ -16,7 +16,7 @@ SsuLog *SsuLog::ssuLog = 0;
SsuLog *SsuLog::instance()
{
if (!ssuLog) {
ssuLog = new SsuLog();
ssuLog = new SsuLog;
ssuLog->fallbackLogPath = "/tmp/ssu.log";
ssuLog->ssuLogLevel = -1;
}
......
......@@ -23,8 +23,8 @@ public:
void print(int priority, QString message);
private:
SsuLog() {};
SsuLog(const SsuLog &); // hide copy constructor
SsuLog() {}
Q_DISABLE_COPY(SsuLog)
static SsuLog *ssuLog;
int ssuLogLevel;
......
......@@ -16,7 +16,7 @@ class SsuKs: public QObject
Q_OBJECT
public:
SsuKs() {};
SsuKs() {}
public slots:
void run();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment