Skip to content

Commit

Permalink
Remove unnecessary characters and use qt copy constructor hiding
Browse files Browse the repository at this point in the history
  • Loading branch information
pvuorela committed Oct 10, 2016
1 parent 52ee9e2 commit a4266d0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libssu/ssucoreconfig.cpp
Expand Up @@ -20,7 +20,7 @@ SsuCoreConfig *SsuCoreConfig::ssuCoreConfig = 0;
SsuCoreConfig *SsuCoreConfig::instance()
{
if (!ssuCoreConfig)
ssuCoreConfig = new SsuCoreConfig();
ssuCoreConfig = new SsuCoreConfig;

return ssuCoreConfig;
}
Expand Down
4 changes: 2 additions & 2 deletions libssu/ssucoreconfig_p.h
Expand Up @@ -109,8 +109,8 @@ class SsuCoreConfig: public SsuSettings


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;
};
Expand Down
2 changes: 1 addition & 1 deletion libssu/ssulog.cpp
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions libssu/ssulog_p.h
Expand Up @@ -23,8 +23,8 @@ class SsuLog
void print(int priority, QString message);

private:
SsuLog() {};
SsuLog(const SsuLog &); // hide copy constructor
SsuLog() {}
Q_DISABLE_COPY(SsuLog)

static SsuLog *ssuLog;
int ssuLogLevel;
Expand Down
2 changes: 1 addition & 1 deletion ssuks/ssuks.h
Expand Up @@ -16,7 +16,7 @@ class SsuKs: public QObject
Q_OBJECT

public:
SsuKs() {};
SsuKs() {}

public slots:
void run();
Expand Down

0 comments on commit a4266d0

Please sign in to comment.