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.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xsession.cpp') diff --git a/src/xsession.cpp b/src/xsession.cpp index 1f02b6b..a888e91 100644 --- a/src/xsession.cpp +++ b/src/xsession.cpp @@ -83,7 +83,7 @@ int XSession::priority() const { QString XSession::icon() const { QString icon(this->icon_); - if(icon.isEmpty()) { + if (icon.isEmpty()) { if (this->name_.contains("kde", Qt::CaseInsensitive)) { icon = "kde"; } else if (this->name_.contains("gnome", Qt::CaseInsensitive)) { @@ -110,7 +110,7 @@ QList XSession::readSessions(const QString& path) { } XSession* session = new XSession; - if(session->init(fi.absoluteFilePath())) { + if (session->init(fi.absoluteFilePath())) { retval.append(session); } } -- cgit v1.2.3-55-g7522