diff options
author | Jan Darmochwal | 2010-10-07 16:56:12 +0200 |
---|---|---|
committer | Jan Darmochwal | 2010-10-07 16:56:12 +0200 |
commit | e7e9cf2849d0000acf47ecde86e4853687a03409 (patch) | |
tree | aa811c315fa49eccf3691f932ebbc8b28d67fa14 /src/sessiontreeitem.h | |
parent | Added files to parse command line options (diff) | |
download | vmchooser-e7e9cf2849d0000acf47ecde86e4853687a03409.tar.gz vmchooser-e7e9cf2849d0000acf47ecde86e4853687a03409.tar.xz vmchooser-e7e9cf2849d0000acf47ecde86e4853687a03409.zip |
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
Diffstat (limited to 'src/sessiontreeitem.h')
-rw-r--r-- | src/sessiontreeitem.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/sessiontreeitem.h b/src/sessiontreeitem.h index ee587ae..77a1078 100644 --- a/src/sessiontreeitem.h +++ b/src/sessiontreeitem.h @@ -8,9 +8,8 @@ #include "session.h" #include <QString> -class SessionTreeItem -{ -public: +class SessionTreeItem { + public: SessionTreeItem(const Session* session, SessionTreeItem *parent = 0); SessionTreeItem(const QString& text, SessionTreeItem *parent = 0); ~SessionTreeItem(); @@ -25,7 +24,7 @@ public: const Session* session() const; const QString text() const; -private: + private: QList<SessionTreeItem*> children_; SessionTreeItem *parent_; const Session *session_; |