From e7e9cf2849d0000acf47ecde86e4853687a03409 Mon Sep 17 00:00:00 2001 From: Jan Darmochwal Date: Thu, 7 Oct 2010 16:56:12 +0200 Subject: Tidy up the code * fixed compiler warnings, added -Werror to CMakeLists.txt * removed LibXml2 and boost stuff from CMakeLists.txt * fixed some things cpplint.py complains about: * make single-argument constructors explicit * add space before if/for/while/... * don't put { on a line of its own * remove space after ! operator * add space between // and comment * remove extra space before ( in function call * remove extra space before ) * shorten lines to <= 80 characters * remove blank lines at the start of a code block * maybe others --- src/sessiontreemodel.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/sessiontreemodel.h') diff --git a/src/sessiontreemodel.h b/src/sessiontreemodel.h index 31611cb..b5d8ff8 100644 --- a/src/sessiontreemodel.h +++ b/src/sessiontreemodel.h @@ -8,12 +8,11 @@ class SessionTreeItem; class Session; -class SessionTreeModel : public QAbstractItemModel -{ +class SessionTreeModel : public QAbstractItemModel { Q_OBJECT -public: - SessionTreeModel(QObject *parent = 0); + public: + explicit SessionTreeModel(QObject *parent = 0); ~SessionTreeModel(); QVariant data(const QModelIndex &index, int role) const; @@ -29,7 +28,7 @@ public: void addItems(const QList& sessions, const QString& section); -private: + private: SessionTreeItem* root_; }; -- cgit v1.2.3-55-g7522