clean ups: whitespace changes, init props in class headers, copy ctors,
assignments ops svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1046679
This commit is contained in:
parent
5036af3e5d
commit
3c9fe22bdc
|
@ -41,7 +41,7 @@ class log
|
|||
public:
|
||||
log(Level lev = information) : ref(1), level(lev) {}
|
||||
~log();
|
||||
log(const log& other) : ref(other.ref + 1) {}
|
||||
log(const log& other) : ref(other.ref + 1), level(other.level) {}
|
||||
|
||||
private:
|
||||
quint32 ref;
|
||||
|
@ -61,7 +61,7 @@ class LIBPARTITIONMANAGERPRIVATE_EXPORT GlobalLog : public QObject
|
|||
friend log operator<<(log l, qint64 i);
|
||||
|
||||
private:
|
||||
GlobalLog() {}
|
||||
GlobalLog() : msg() {}
|
||||
|
||||
signals:
|
||||
void newMessage(log::Level, const QString&);
|
||||
|
|
|
@ -40,7 +40,10 @@
|
|||
Report::Report(Report* p, const QString& cmd) :
|
||||
QObject(),
|
||||
m_Parent(p),
|
||||
m_Command(cmd)
|
||||
m_Children(),
|
||||
m_Command(cmd),
|
||||
m_Output(),
|
||||
m_Status()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -112,6 +112,9 @@ class ReportLine
|
|||
~ReportLine() { if (--ref == 0) *report << "\n"; }
|
||||
ReportLine(const ReportLine& other) : ref(other.ref + 1), report(other.report) {}
|
||||
|
||||
private:
|
||||
ReportLine& operator=(const ReportLine&);
|
||||
|
||||
private:
|
||||
qint32 ref;
|
||||
Report* report;
|
||||
|
|
Loading…
Reference in New Issue