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:
Volker Lanz 2009-11-09 13:52:54 +00:00
parent 5036af3e5d
commit 3c9fe22bdc
3 changed files with 24 additions and 18 deletions

View File

@ -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&);

View File

@ -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()
{
}

View File

@ -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;