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/xsession.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/xsession.h') diff --git a/src/xsession.h b/src/xsession.h index 50563c2..184b85a 100644 --- a/src/xsession.h +++ b/src/xsession.h @@ -11,12 +11,11 @@ // TODO: sort (operator<) class XSession : public Session { -public: + public: void init(const QString& name, const QString& exec, const QString& comment, const QString& icon); bool init(const QString& filename); - bool isActive() const; bool isLocked() const; int priority() const; @@ -37,7 +36,7 @@ public: static QList readSessions(const QString& path); -private: + private: QString name_; QString exec_; QString comment_; -- cgit v1.2.3-55-g7522