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/save_restore_session.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/save_restore_session.cpp') diff --git a/src/save_restore_session.cpp b/src/save_restore_session.cpp index 3b0e8ab..a9f31f1 100644 --- a/src/save_restore_session.cpp +++ b/src/save_restore_session.cpp @@ -8,8 +8,8 @@ void writeSessionName(QString name) { QDir saveFileDir(QDir::homePath() + "/" + VMCHOOSER_USER_PATH); QString saveFileName(VMCHOOSER_PREVIOUS_SESSION_FILE); - if (! saveFileDir.exists()) { - if (! saveFileDir.mkpath(saveFileDir.path())) { + if (!saveFileDir.exists()) { + if (!saveFileDir.mkpath(saveFileDir.path())) { // TODO: error return; } -- cgit v1.2.3-55-g7522